Jquery Selector

Jquery selector select or find the DOM (Document Object Model) element in the HTML documen


Selector Syntax

$("css selector")

Simple Selector

tag Name selector $("p")

class Name selector $(".demo")

id Name selector $("#demo")

attribute selector $("[href]")

attribute with value selector $("[href=example.com]")

Pseudo Selector

a:hover

a:link

a:visited

div:hover

p:hover

Pseudo Element Selector

There are six type of pseudo element selector

::after

::before

::first-letter

::first-line

::selection

::placeholder


We Learn Above Property In Next Chapter