jQuery:Selector element

Overview

Matches all elements according to the given element tag name

parameter

elementStringV1.0

An element to search for. The name of the tag that points to the DOM node.

Demo

Description: Find a DIV element.

HTML code:
<div>DIV1</div>
<div>DIV2</div>
<span>SPAN</span>
jQuery code:
$("div");
result:
[ <div>DIV1</div>, <div>DIV2</div> ]

Leave a Reply

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