How to add attributes to an HTML element in jQuery?

Posted by Pinki | Updated on

In this example you will learn, how to add attributes to an HTML element in jQuery. You can use the jQuery attr() method to add attributes to an HTML element.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers