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

How do you retrieve an attribute of HTML tag using jQuery ?

0 votes
58 views
How do you retrieve an attribute of HTML tag using jQuery? Anybody tell me get an attribute value of html tag.
asked Nov 12, 2015 in jQuery by vikas singh

1 Answer

0 votes

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)

answered Nov 14, 2015 by john12 (2,680 points)
...