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



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

Answer / chaitanya

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

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More jQuery Interview Questions

How to load a page using jquery mobile? : jquery mobile

0 Answers  


What is the use of jQuery filter?

0 Answers  


With jquery ui 1.7 being released in the last few days, what do you see as the key parts of jquery ui 1.7? What are you most proud of out of that release?

0 Answers  


What is the use of toggle() method in jquery?

0 Answers  


Is Uncaught TypeError: $(…).modal not a function jquery?

0 Answers  






What is meant by the term ‘theming’ in jquery mobile? : jQuery Mobile

0 Answers  


What is the minimum setup needed to start using jquery.

0 Answers  


What is the difference between onload() and document.ready()?

0 Answers  


Can you give me a brief history of your programming days? Where did it all start?

0 Answers  


How we can get the value of a radio button using jquery?

0 Answers  


What is .detach()? : jquery mobile

0 Answers  


Tell me how to check data type of any variable in jquery? : jquery mobile

0 Answers  


Categories