maztt
maztt

Reputation: 12294

ASP.NET MVC not submitting in Internet Explorer

$('#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?

Upvotes: 2

Views: 126

Answers (1)

Sebastián
Sebastián

Reputation: 482

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

where aspnetForm is the name of the form

Upvotes: 2

Related Questions