trying to do some low-level ajax that hits url in the background but does nothing on the client side. Here is the code:
can_id = $(this).attr('id');
$.ajax({
url:"savethis.php",
data:"q=0&can_id="+can_id;
});
but I keep getting this error:
Uncaught SyntaxError: Unexpected token ;
When I comment out the ajax() portion the error goes away. Why am I getting this error?
;where there isn't supposed to be. So remove the;aftercan_id...