devxlogo

Disable HTML Elements

Disable HTML Elements

HTML elements can be made inactive and non-responsive by using the disable attribute. When HTML controls are disabled, they appear dimmed and don’t respond to user input. This is useful when you’re trying to prevent a user from entering information into controls that do not apply to them, potentially cutting the amount of validation needed.
Sample code:

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------

size=3>

devx-admin

Share the Post: