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 ?


AHeimlich wrote:
> 
> If you want to prevent a form's submission, you should use the <form>
> element's "submit" event.
> 
> On 12/5/06, Roger <[EMAIL PROTECTED]> wrote:
>>
>>
>> I am using jquery 1.0.3. I have a standard form with an input
>> type="submit"
>> which has a onclick handler. This handler may return false depending on
>> certain conditions. This should cancel the form submit process. It worked
>> fine before, but since I included jquery.js the form gets submitted
>> whatever
>> the return of the onclick handler.
>>
>> Is this a known bug or feature ?
>>
>> Many thanks in advance
>> Roger
>> --
>> View this message in context:
>> http://www.nabble.com/input-type-submit-onclick-handler-tf2763963.html#a7707065
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
> 
> 
> 
> -- 
> Aaron Heimlich
> Web Developer
> [EMAIL PROTECTED]
> http://aheimlich.freepgs.com
> 
> _______________________________________________
> 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#a7735719
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to