JQuery Programmer Question: Download JQuery Programmer PDF

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

Tweet Share WhatsApp

Answer:

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

Download JQuery Programmer PDF Read All 201 JQuery Programmer Questions
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?