Javatpoint Logo
Javatpoint Logo

Forms Disabled Elements

There are two ways to disable a form element.

disabled class: The disabled class can be applied to any elements of HTML.

disabled attribute: The disabled attribute can only be applied for form elements like input, textarea and select.

Note: Disabled element has lower opacity and doesn't receive any touch/click events.


Let's take an example to demonstrate disabled class and disabled attribute.

Test it Now

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA