> The button is indeed of type="submit" and the form was working in IE > prior to adding the above script. > > I also changed the attribute value to true (removing the quotes). > > Sadly, I'm still getting the same results in IE. > > On Jan 26, 4:10 pm, Karl Swedberg <k...@englishrules.com> wrote: > > > A couple things you might want to look at: > > > 1. Does your button have type="submit" ? It will need to if you want > > to submit with it in IE. > > > 2. The disabled attribute value should be true, not "true". > > > --Karl > > > ____________ > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > > On Jan 26, 2009, at 4:55 PM, GBartels wrote: > > > > I'm using JQuery 1.2.6 with the following script: > > > > <script type="text/javascript"><!-- > > > $(document).ready(function(){ $("button.submitButton").click(function > > > () { > > > $(this).attr("disabled","true").html("Processing, please wait..."); > > > $("button").attr("disabled","true"); }) }); > > > // --></script> > > > > It works as expected in FF3 but is is slightly broken in > > > IE7. On initial click, the submit button appears to take focus, on > > > second > > > click, the "Processing..." message appears and the button is disabled. > > > The > > > problem is that it the form is then never submitted. Any ideas on how > > > I might "fix" this to work in IE7 as well?
Untested: $('button.submitButton').click(function() { $(this).blur().html('Processing, please wait...'); this.disabled = true; this.form.submit(); return false; });