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.

BY Best Interview Question ON 26 Jan 2019

Example

<script>

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

.wrap( "" )

.parent()

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

</script>