HTML Basic
HTML button disabled button's disabled syntax
HTML button disabled is used to disable the use of the button (HTML button). This may be a bit unclear. Simply put, when a button appears on your web page, but you don’t want users to be able to press the button, you can use disabled. Syntax to disable the button function.
Basic syntax example
<input type="button" disabled="disabled" value="This button is disabled">
Present results
This kind of usage can be presented at the beginning of the web page. Of course, if you want the button function to be turned on after the netizens do some actions, you can use JavaScript grammar to remove disabled. For example, after filling in the form completely, the sent button can be used. .
Post a Comment
0 Comments