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 is there a better one?
On 23 Dez., 00:31, Wizzud <[EMAIL PROTECTED]> wrote: > 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; > }); > > }); > > <form ....> > .... > <input type='button' class='submitbutton' .... /> > </form> > > On Dec 22, 4:35 pm, psy* <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I want to avoid double submitting, so I have the following code: > > > $(function() { > > $("input[type='submit']").click(function() { > > $("input[type='submit']").attr('disabled', true); > > }); > > > }); > > > In FF, it works pretty nice, but in IE 6 and IE 7, the submit buttons > > gets disabled but the form is not submitted ... What's wrong with it? Do > > you have any better solution? > > > Thanks!