Uncaught SyntaxError: missing ) after argument list



I am getting this error message

Thanks in advance

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Here is my code:

{           $(&quot;a&quot;).each(function() 
{             var i = $(this).attr(&quot;href&quot;);            
 var n = i.replace(http://www.example.com, &quot;https://www.example.com&quot;);                               $(this).attr(&quot;href&quot;, function() {               return n             })           })         });       </script>


i really recommend you to fix the indent(ion) of your code. With correct indent, such an issue as you are currently facing, is easier to find, given it involves {}:

{  // no matching } 


{ // no matching }

by fixing the indent, its easier to see where this closing curly brackets are missing


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.