I am trying to implement a jQuery ajax post that reads like this :
$(this).click( function() {
jQuery.post('index', function() {
console.log(responseText);
}, "text")
});
In the above. The ajax call is definitely taking place, so I am non-plussed about that. What I am trying to wrap my head around is how I can access the responseText in my callback function, which is basically the Ajax response that is being received upon successful execution of the ajax call.
Pretty simple I suppose, but I can't get it :p