$('#btn').submit(function () {
$('#btn').attr("disabled", "disabled");
setTimeout('enableButton()', 500);
return true;
});
function enableButton() {
$('#btn').removeAttr('disabled');
}
How can I 开发者_StackOverflow中文版submit the form in Internet Explorer?
$('#aspnetForm').submit(function() { $('input[type=submit]', this).attr('disabled', 'disabled'); });
where aspnetForm is the name of the form
精彩评论