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!

Reply via email to