Get attribute of element selected by element name
Hi!
I am just working on a project where i have to replace the href-attributes of all links by another string. The problem is, that i need the old href-attribute to generate the new one, and i have no idea how to get it
i tried it with something like this, but it doesnt work:
$(document).ready(function(){
$("a").attr({"href":"javascript:follow("+ $(this).attr("href") +")";
});
I know there is some way to do it but i forgot it and i looked up the whole internet for it and didnt find it, so i hope you can help me