I have the code here on jsfiddle.
We are using jquery 1.4.4 unable to update to newer version as of yet, where I can get my code to work.
So I need to on domready or on pageload, add attr to numerous <a tags. Can someone help me figure out a method where this is possible with javascript and/or the required version of jquery.
Thank you.
You can use .attr(index, callback) process to do it easily like below:
Demo
But if you want to use
.each()then try like following:Demo