I have a form that users use to input information about a posting. When complete they click 'Save' to update. However, in some rare cases (10 in 15,000 records) the user has double clicked the save button and caused a double form submission duplicating items for the posting.
I tried using this to prevent it:
$('input[type=submit]').click(function(){ $('input[type=submit]').attr('disabled',true); //return true; }); But the problem with this, it works perfectly in Safari / Firefox etc, but does not work in Internet Explorer 8 (and probably not for 6 & 7)
When I press save in IE8, the button is disabled and that's it, no form submission at all.
(I tried it with and without return true;)