DOM Manipulation with jQuery

  • Jack Franklin


So now you know a fair amount about jQuery and what it can do. You know how to select elements, how to make sure your code only runs after the DOM is loaded, and plenty more. You’ve also taken a look at animations and done some basic manipulation by changing colors of elements using the css() method. What you might not have realized is that animations are manipulation. Previously, you used fadeIn/fadeOut to manipulate the opacity of an element over a period of time. This chapter will focus entirely on manipulation of elements, including:
  • Changing CSS styles with the css() method

  • More animation as you meet jQuery’s animate() method

  • Inserting, removing, and moving elements around the DOM

  • Editing element attributes with attr()

  • A myriad of manipulation methods that jQuery provides


List Item Display Property Basic Manipulation Unordered List Convenience Method 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Jack Franklin 2013

Authors and Affiliations

  • Jack Franklin

There are no affiliations available

Personalised recommendations