1. Scope of application: INPUT element, option element in HTML
2, Function: Disable the element. The disabled INPUT element is neither available nor clickable.
3. Example:
① button element with the following code is disabled
<input type= "button" disabled= "false" value= "Test button" > <input type= "button" disabled= "123" value= "Test button" > <input type= "button" disabled= "value=" Test button "> <input type=" button "disabled=" any word "value=" Test Button "> <input type=" button "disabled=true value=" Test Button ">
② the button element for the following code is enabled, note that false is not "false", and currently only the following two cases are enabled.
<input type= "button" Disabled=false value= "Test Button" >
4, Application. Allow the button to be clicked only once within 3 seconds.
<input type= "button" value= "Point Me" class= "btn" /><script>$ (". btn"). "Click", Function () {$ (this). attr ("Disabled", "disabled"); SetTimeout ("$ ('. Btn '). Removeattr (' disabled ')", +); Alert ("button is clicked"); });</script>