Hi Guys, I am new to JQuery. I am getting little trouble in selecting an item using class or ID in jQuery?
Given below code selects an element of id name "element1" :
Since IDs are unique, so it will select only the element of particular id. Given below code select the elements having particular class name as mention by you :
In this case "myClass" is the css class name. The selected elements can have one or more elements.