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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the value of selected option in jquery?

478


What is difference between sorting string array and sorting numerical array in jquery?

475


What are the advantages of jQuery?

478


Explain the common methods of sending a request to a server.

477


How to execute jQuery code after the DOM is ready?

481






Explain various methods to make ajax request in jquery? : jquery mobile

434


Difference between event.PreventDefault and event.stopPropagation?

517


Explain bind() vs live() vs delegate() methods.

480


What is the latest version of jquery?

495


Which are the fastest selectors in jquery? : jquery mobile

416


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

480


Please explain remove class jquery with example?

457


What is method chaining in jquery?

449


How to get the current offset of the first matched element, in pixels, relative to the document using ?

472


What are the advantages of using cdn?

468