Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In this section, we are going to look at how to use jQuery to retrieve content from the page. In fact, you could use jQuery to do almost nothing else more than this. This is one of jQuery's best features. This is something that you would usually use the DOM for in the past and it's one of the things that jQuery makes much easier. We are going to start by looking at the selectors and filters feature of jQuery. jQuery's selectors and filters do essentially exactly what their name implies that they do.
So essentially, you use a selector and that will create an array of objects or elements that are in the document and thefilters will then further refine them. Now, it's important to know that this array that comes back is not a set of DOM elements. It's a collection of jQuery objects that are wrapped around the DOM elements and these jQuery objects provide a large number of predefined functions and properties for further operating on the objects. Now, you can get access to the underlying DOM element for each one of these objects, if you want to, but the whole purpose of doing this is that you are wrapping them in jQuery objects, so that you have a whole bunch of convenience functions and high-level ways of operating on them without having to resort to the DOM in order to do that.
So, now that we understand what selectors and filters are, let's take a look at how to use some of the basic selectors and filters in jQuery.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 101754 Viewers
61 Video lessons · 88515 Viewers
71 Video lessons · 72325 Viewers
56 Video lessons · 104043 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.