Coming from prototype, still new to jQuery..

Trying to stop a form submission like so:

<form name='register' id='form_register' action='/register'
method='post'>....</form>

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!

Reply via email to