Basic or Find Selectors

Basic Selectors are also referred to as "Find Selectors". It is used to search and find the elements within the Document Object Model. Following are the attributes used inside the basic selectors.

All: $("*")

The "all" selector is used to find and select all the form elements such as div, span etc...

Elements: $("element")

The "Element" selector is used to select a particular element such as div, span, h1 etc...

Id: $("#id")

The "id" selector is used to find and select the elements in a form with particular id.

Class: $(".class")

The "class" selector is used to select all the form elements with the same class name.

Multiple: $(".class")

The "Multiple" selector is used to select one or two element in a combination within a form.




Ask Questions

Ask Question