Loading…

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.

Example

                                        

<script>

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

.wrap( "" )

.parent()

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

</script>

Suggest An Answer

No suggestions avaliable!

Latest post from Jquery interview questions

Ask Question