jQuery TutorialLesson 2Free preview
jQuery Intro
This lesson is part of jQuery · All levels
Summary
The introduction of jQuery explains what a JavaScript library is, the reasons it came about, and how it works by selecting elements and then applying the action. The concept is very simple: select the element with the selector, then run the method on that selection. With this approach, long tasks in pure JavaScript can be written in just one line.
Key points
- jQuery is a lightweight, cross-platform JavaScript library
- jQuery pattern: select elements with a selector, then give them an action using the method
- jQuery hides small differences between browsers so the code is more consistent
- The file library is required before jQuery code is written on the page
- The full name of the fixed jQuery function, whereas $ is just an alias
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.