jQuery Selectors: Introduction

This entry is part 1 of 33 in the series jQuery Selectors

jQuery selector is actually based on CSS selectors.  So knowing CSS selectors will definitely help in learning jQuery Selectors.

As in CSS selectors, jQuery selectors allow you to find HTML elements in many ways.

The most commonly used selectors are the basic ones.

The basic selectors focus on the ID attribute, class attribute, and tag name of HTML elements.

To use jQuery selector, simply use $(selector).

Some examples are $(‘h4’), $(‘p’) and $(‘a’).

Series Navigation
jQuery Selectors: Universal selector * >>