jQuery is a library of commonly used javascript widgets and functions that has more or less taken the internet by storm. It’s written in javascript and it means that you don’t have to go through the pain of building a popup modal dialog box or a dropdown menu, for example, the long way. It also gives you the incredibly easy ability to select elements on the webpage ("DOM elements") so you can start modifying their properties, whether that’s hiding them, moving them, changing their contents… it’s all in your hands!
jQuery will let you take your javascript knowledge and start really diving into your webpages and messing with (ahem, improving) the elements.
jQuery, of course, provides a very easy-to-use model for manipulating the elements on your page. It also contains lots of helper functions and special libraries for doing things like building widgets or even mobile apps. You get to benefit from all the lazy programmers before you who build these tools to make their lives easier. Enjoy!
What is the DOM?
How to add jQuery to Your Web Pages(Download/CDN).
Using jQuery How can you :
jQuery syntax anatomy $(selector).action()
What does the $
symbol mean? What is a selector and action(events)?
jQuery selectors:
What is the Document Ready Event $(document).ready().
jQuery Dimension Methods
what is implicit iteration.
$("div")
what would happen)jQuery Chaining.
What does "traversing the DOM" mean?
How can you add CSS to a selected element?
How do you add or remove data attributes from an element?
What new iterators (including some familiar Ruby ones) does jQuery give you?
How can you select only the <li>
elements inside of <div>
elements with class test-div
?
What happens to the elements you’ve already selected (e.g. with $("li")
) if another qualifying element (e.g. a <li>
gets added to the DOM later?
How would you add the class some-class
to every <li>
on the page?
How would you use #map
to return an array listing the contents of a particular list?
Where can you look up any selectors you need?
The jQuery Documentation has a comprehensive list of all the functions you can use.
jQuery docs will be your savior again and again. You’ll probably find them via Google most of the time, but get used to the format they present information in because you’ll be seeing a lot of it.
Watch people code cool stuff with The Code Player