Title: Introduction to jQuery - Selectors
Duration: 15:34 min
Description: This video starts by continuing the previous video discussion. We show the use of contents, find, addClass, and siblings. We look at the contents of a div, we find the bold tag, and we apply the hilited class to it. Then we get all the siblings of the textarea and we display their text within the textarea. The second part of the video start the discussion on selectors. For that page, we create few spans and divs. We add ordered and unordered lists to the divs. In the jQuery code, we retrieve a div with a specific id and apply a css class to it. The rest of the selectors are discussed in the next videos.
Methodology: Using jQuery library.
Examples constructed: The first example in this video shows the use of contents and find. We look at the div's contents to find the bold tags and we add the class 'hilited' to them. Then we select the textarea and we display all the contents of its siblings within it. The second example shows how to select a div with a specific id and apply a css class to it.