How to change href attribute of a hyperlink using jQuery?

Posted by Prem Tiwari | Updated on

In this example you will learn, How to change href attribute of a hyperlink using jQuery You can use the jQuery .attr() method to dynamically set or change the value of href attribute of a link or anchor tag. This method can also be used to get the value of any attribute.


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