Advertisement

jQuery Intro & Syntax

Previous Lesson 31 of 34 Next
Advertisement
Lesson Overview: Write concise DOM manipulation using $(selector).action() chaining.

Write Less, Do More

jQuery wraps DOM elements cleanly using CSS selectors inside $(). Always wrap startup code in $(document).ready(...) or $(function(){ ... }).

jQuery-Style Toggle Demo (Editable — type & Run)

Advertisement

Test Yourself With Exercises

Select all paragraph elements using jQuery syntax:

("p").hide();
Advertisement