JQuery Programmer Question:

Download Job Interview Questions and Answers PDF

How to select element having a particular class (".selected")?

JQuery Programmer Interview Question
JQuery Programmer Interview Question

Answer:

$('.selected'). This selector is known as class selector. We need to prefix the class name with "." (dot).

Download JQuery Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How to prevents the browser from executing the default action using jQuery?How to set the html contents of an element using jQuery?