© Jack Franklin, Russ Ferguson 2017

Jack Franklin and Russ Ferguson, Beginning jQuery, https://doi.org/10.1007/978-1-4842-3027-5_4

4. DOM Manipulation with jQuery

Jack Franklin and Russ Ferguson2

(1)Aviation House, GDS, 6th Floor Aviation House, London, UK

(2)Apt 129, Ocean, New Jersey, USA

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 ...

Get Beginning jQuery: From the Basics of jQuery to Writing your Own Plug-ins now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.