If you have only one submit button, the Enter key is triggering the click event and it works. It looks like jQuery is submitting the form regardless of any click handler. This would mean that I have to update all my forms to include a handler for the form's onsubmit event, which is a pain when there are hundreds of such forms...
Appreciate your help --Roger Klaus Hartl-3 wrote: > > Roger schrieb: >> I know I can prevent the form submission, the issue here is that just >> including the jquery.js in an existing page breaks a previously working >> form. My problem is that I have a number of these forms all around in my >> code and I have to go through each of them. >> >> Isn't there an easier way to tell jQuery not to submit the form when the >> onclick handler returns false ? > > Just to note: One could still submit the form by hitting enter, so it > would be better to use the form's submit event anyway. > > > -- Klaus > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/input-type-submit-onclick-handler-tf2763963.html#a7736609 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
