views:

45

answers:

1
$('#btn').submit(function () {
    $('#btn').attr("disabled", "disabled");
    setTimeout('enableButton()', 500);
    return true;
});

function enableButton() {     
    $('#btn').removeAttr('disabled');
}

How can I submit the form in Internet Explorer?

+1  A: 

$('#aspnetForm').submit(function() { $('input[type=submit]', this).attr('disabled', 'disabled'); });

where aspnetForm is the name of the form

Sebastián