
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" :
$('#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 :
$('.myClass')
In this case "myClass" is the css class name. The selected elements can have one or more elements.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.