Reputation: 9299
I'm learning to use forms and Ajax with jQuery, but I didn't came far before I got an error message that I can't solve on my own. In the Chrome developer tool, I get a message that there is no on
method!? What have I done wrong?
$(document).ready(function(){
$('form.ajax').on('submit', function() {
//console.log('Working!');
alert("test");
return false;
});
});
Upvotes: 1
Views: 58