🤯 New: Coding Assessments Practice your skills on real-world programming challenges

jQuery Change Hyperlink Attribute Values

Sam Deering

Sometimes it can be time consuming to change hyperlinks on a page. Never fear! jQuery to the rescue! Here is some jQuery code to change the attribute values for hyperlinks on a web page.

Link attribute: “name”, “id”, “class”, “target”, “href”.