What are selectors in jQuery? Explain

Selectors are the formats used to identify and operate HTML elements. For instance, to select all checkboxes in a web form then we can use [type="checkbox"] selector.




var input = $( "form input:checkbox" )

.wrap( "" )


.css({ background: "yellow", border: "3px red solid" });


Suggest An Answer

No suggestions avaliable!

Latest post from JQuery interview questions

Ask Question