Getting HTML tag attribute of an element using jQuery

Using jQuery you can get any attribute (ex: id, class, style, name, title, etc.) of any HTML tag (ex:
, ,

, etc.) using the .attr("attributeName") function. This method return a string of the element’s attribute. Example: Consider we have the following HTML tags on our page with corresponding attributes:


Some content

Comments

Popular posts from this blog

Types and forms of imitation gemstone and manufactured

Genuine Windows 7 Ultimate: The GENUINE Windows 7 activator for x32 and x6480

7 Tips before you buy detectors for gold and treasures and minerals