This javascript produces an error:
missing ) after argument list
In firebug with the code:
<script type=\"text/javascript\">
function add( answer )
{
$.post('../page.php?cmd=view&id=3523',
{user_id: 3523, other_user_id: 2343}, function(d)
$(answer).after(\"<span>Done!</span>\").remove();
});
}
}
</script>
What am I doing wrong?
The JavaScript exception "missing ) after argument list" occurs when there is an error with how a function is called. This might be a typo, a missing operator, or an unescaped string.
The "SyntaxError: missing ) after argument list" occurs when we make a syntax error when calling a function, e.g. forget to separate its arguments with a comma. To solve the error make sure to correct any syntax errors in the arguments list of the function invocation. Copied!
arguments is an Array -like object accessible inside functions that contains the values of the arguments passed to that function.
function d
misses an opening bracket, {
$(answer).after(
should not be escaped \"
, just a regular quote will do "
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With