cycling jQuery_Succinctly | Page 59

Chapter 5 HTML Forms Disable/enable form elements Using jQuery, you can easily disable form elements by setting the disabled attribute value of a form element to disabled. To do this, we simply select an input, and then using the attr() method, we set the disabled attribute of the input to a value of disabled. Sample: sample51.html To enable a disabled form element, we simply remove the disabled attribute using removeAttr() or set the disabled attribute value to be empty using attr(). Sample: sample52.html