jQuery:Selector *

Overview

Selects all elements.

Mostly used to search for context.

Demo

Description:

To find everyone elements.

HTML code:
<div>DIV</div>
<span>SPAN</span>
<p>P</p>
jQuery code:
$("*")
Result:
[ <div>DIV</div>, <span>SPAN</span>, <p>P</p> ]

Leave a Reply

Your email address will not be published. Required fields are marked *