Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Modifying Content on the Page 513

18


Manipulating Attributes Directly


You can also use jQuery to manipulate the attributes of elements directly. For example,
disabling a form field entirely requires you to modify the disabled attribute of that field.


I’ve added a Submit button to the form from the previous example and set it to disabled.
Here’s the new form:



Free download pdf