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: http://stackoverflow.com/questions/3143698/uncaught-syntaxerror-unexpected-token
I don't understand how to do it.
http://api.jquery.com/jQuery.post/ has no examples. :( Thanks.