The button.click() implementation first triggers the
onclick event, then checks if the button is disabled,
and then fires the action. For forms where the onclick
event disables the button to keep this form from being
resubmitted, the action fails because the button is
disabled after the onclick event has been fired. The
order of events should be the same as it would be in a
browser - the button should be checked for disabled
first, then the onclick event should be triggered and
the form action submitted.
Log in to post a comment.