Set HTML tag’s / element’s attribute

In our previous post about “How to get an element’s / tag’s attribute” I described how to get element’s attribute. In this post I would like to show you how to set any HTML tag’s or element’s attributes. Don’t forget, jQuery can set any attributes like id, class, style, name, title, etc. Setting element’s attribute example: // This code add title to all page links
$("a").attr("title", "This is

Comments

Popular posts from this blog

Asus K52DE Specifications

Prince William and Kate Middleton