Disabled fields

All form fields can be disabled through their disabled attribute. It is a property on the element’s DOM object.

<button>I'm all right</button>

<button disabled>I'm out</button>
Output

Disabled fields cannot be focused or changed. The disables fields look gray and faded.

Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +