1.

What are selectors in jQuery? Explain

Answer»

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>



Discussion

No Comment Found