I have a form within an ASP.NET MVC application and I’m trying to submit it via AJAX but whenever I replace my form submit with jquery like so:
$('#formID').submit(function() { });
it still does the actual post back in the form itself instead of jquery taking over, am i doing something wrong?
You need to
return falsefrom theonclickevent to prevent the post-back from happening. You can actuall just add an onclick property likeonclick="return false".