0 votes
in jQuery by
How do you retrieve an attribute of HTML tag using jQuery? Anybody tell me get an attribute value of html tag.

1 Answer

0 votes
by (4.4k points)

To retrieve an attribute of HTML tag using jQuery see the following details:-

Please visit the set/get attribute to see more information about attr() method like:- get attribute value and set attribute single or multiple values.

attr():- attr() is a method that is used to return the attribute value, it returns the value of the FIRST matched element.

Syntax:- $(selector).attr(attribute)

Share:- Whatsapp Facebook Facebook

Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.