jQuery Element Selector
Selects all elements of this type on the page:
$('div');
We can also, for example, select all p elements directly nested within the div tag:
$('div p');
Get and color red all i inside h2.
Selects all elements of this type on the page:
$('div');
We can also, for example, select all p elements directly nested within the div tag:
$('div p');
Get and color red all i inside h2.