3. Getting and Setting DOM Attributes
In This Chapter
Imagine being able to have access to every property and attribute of every element in your web pages. Now imagine you have total control over those properties and attributes. Would having that level of access and control make your web development life easier?
The jQuery library gives you the access and control you desire over each element’s attributes and properties. Known collectively as the DOM (Document Object Model) general attribute methods, these powerful functions allow you to get or set attributes and properties, add and remove classes, and even directly set Cascading Style Sheet ...