eZeeNow.com

it's your's

How many ways we can select (html) elements using jQuery?

We can select html elements in three ways using jQuery.

$("#id")
$(".class")
$("tag")

1) Based on  ID(hash-#) : $("#elementId")
2) Based on Class (dot -.) : $(".elementClass")
3) Based on Tag: $(tag) : $("body")


Loading