OBS: download the application please visit www.mrbool.com/player
Author: Ayad Boudiab
Title: Introduction to jQuery -Utilities
Duration: 17:05 min
Description:This video discusses some of the utilities available in jQuery. We will start by showing how we can retrieve an element with an id. Then we demonstrate the use of chaining by calling add, text and css on the first div element. Using this powerful approach, we dynamically added a span to the first div, then added a paragraph with an id to the span, then changed the text in the paragraph, then changed the css properties of the text. We then displayed the count of the children of the second div in the span with id 'output'.
Methodology: Using jQuery library.
Technologies: JavaScript, HTML, jQuery
Examples constructed: We added three divs, a span, and a text area to the page. Our example uses the power of chaining to make consecutive calls to elements added dynamically to the first div (retrieved by jQuery through its id). In the second small example, we displayed the count of the second div's children.
Key words: jQuery, JavaScript, div, $(document).ready(), function, add, text, css, children, length, find, contents, siblings, addClass.