Home >Web Front-end >JS Tutorial >jQuery method to get the current object tag name_jquery

jQuery method to get the current object tag name_jquery

WBOY
WBOYOriginal
2016-05-16 17:01:201242browse

Get the current object label name

Copy code The code is as follows:

$(".classname") [0].tagName;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn