How to disable html button using JavaScript?
Posted
by Jack Roscoe
on Stack Overflow
See other posts from Stack Overflow
or by Jack Roscoe
Published on 2010-06-10T13:15:50Z
Indexed on
2010/06/10
13:22 UTC
Read the original article
Hit count: 276
JavaScript
|html
Hi,
I've read that you can disable (make physically unclickable) a html button simply but appending 'disable' to its tag, but not as an attribute, as follows:
<input type="button" name=myButton value="disable" disabled>
Since this setting is not an attribute, how can I add this in dynamically via JavaScript to disable a button that was previously enabled?
© Stack Overflow or respective owner