[jQuery] Re: Avoid double submit by disabling submit button causes problem in IE

2007-12-23 Thread Fayland Lam
generally I do something like here: http://www.foorumbbs.com/static/js/utils.js code: $(document.forms).each( function(theform) { // disabled the Submit and Reset when submit a form // to avoid duplicate submit $(theform).submit( function() { $('input:submit

[jQuery] Re: Avoid double submit by disabling submit button causes problem in IE

2007-12-22 Thread KnoxBaby
yeah that would probably work but it would be much nicer if I wouldn't have to do any changes in the html directly because there are really really many forms, any advise?? shall I first replace the submit button with such a button and than use your code or is this a rather dirty way to do it and i

[jQuery] Re: Avoid double submit by disabling submit button causes problem in IE

2007-12-22 Thread Wizzud
You could change the submit to a button and use one() ... For example... jQuery(function($){ $('input.submitbutton').one('click', function(){ $(this).parents('form')[0].submit(); return false; }); }); On Dec 22, 4:35 pm, psy* <[EMAIL PROTECTED]> wrote: > Hello, >