When have a list of input buttons on the UI which sill submit a form.
New requirement is to disable
the button after click it. I have tried
j("input.allowed-task").each(function() {
document.getElementById(j(this).attr('id')).disabled = true;
});
and
j("input.allowed-task").attr('disabled', 'disabled');
It all works fine on firefox, IE8, IE9
But when it comes to IE7, neither of above method works. All processes are ignored after the button is disabled, so the form is not even get submit, really don't have an idea how to fix it.
BTW we are on jquery 1.4 so .prop
is not supported