Is it possible to disable the element in JavaScript?
A Google search yielded only results showing how to disable each element
within a form.
If I have a form with an onsubmit event binded to it that calls an AJAX
request, how can I stop the user from submitting the form completely? If a
user submits it once and the request is made, I don't want them to keep
submitting it making more requests, otherwise that'll bog down the site.
Disabling only the submit button does nothing as far as I know--you can
still hit "Enter" in input texts, emails, passwords, etc. and the form is
still submitted.
Is this possible in any browsers?
No comments:
Post a Comment