> Clicking on an input with type of submit. Then the javascript: > > $('#form_register').submit(function () { > alert('die'); > return false; > > }); > > Yet this isn't stopping the event. In prototype, you could observe the > submit event, and call event.stop(). Anything similar in jQuery? > > Thanks!
You have the right syntax; that should be preventing the submit from occurring. Do you have the code wrapped in a ready block? $(document).ready(function() { $('#form_register').submit(function () { return false; }); });