my post looks like this:
$.post('/ajaxvalidate/1', {nid: nid}, function(data) {
I get the Uncaught SyntaxError: Unexpected token :
error in google chrome.
I understand that I need to set a content type or something, from this question:
Uncaught SyntaxError: Unexpected token :
I don't understand how to do it.
http://api.jquery.com/jQuery.post/ has no examples. :( Thanks.