Hi Cesar,

Thanks for your reply. But that isn't working. It still gives me the
same result. The form does not post. It is just that the button gets
disabled after click.
Wonder why it works properly in Firefox and Chrome but not in IE.. :(
Please help.


~Amit

On Jul 6, 2:14 pm, "Cesar Sanz" <the.email.tr...@gmail.com> wrote:
> try
>
> .attr('disabled', 'disabled') instead of .attr('disabled', 'true')
>
> ----- Original Message -----
> From: "Amit" <amit2...@gmail.com>
> To: "jQuery (English)" <jquery-en@googlegroups.com>
> Sent: Monday, July 06, 2009 10:50 AM
> Subject: [jQuery] DISABLE BUTTON AFTER 1 CLICK ->JQUERY: NOT WORKING WITH
>
> IE8
>
> > Hello there,
>
> > I am using Drupal forms with Jquery. I used the following code to
> > disable a button after it is clicked to prevent double updates.
>
> > $(document).ready(function() {
> > $('#node-form').submit(function (e) {
> > var settings = Drupal.settings.block_submit;
> > if (settings.block_submit_method == 'disable') {
> > $('input[type=submit]', $(this)).attr('disabled', 'true').each
> > (function (i) {
> > });
> > $(this).submit(function (e) {
> > return false;
> > });
> > }
> > return true;
> > });
> > });
>
> > Form ID should be specific to: "node-form".
>
> > This structure works fine with Firefox and Chrome but does not work
> > with IE8 / 7 (compatibility mode).
> > When I click the submit button for the form in IE, it disables the
> > button but the form never submits. (it behaves like an AJAX button
> > where it gets disabled without the submit action ever happening)
>
> > How do I solve this? Please help me out of this...
>
> > Thanks,
> > ~Amit
>
>

Reply via email to