jquery change attribute
- by junray
hi, i have 4 links and i need to change the href attribute in a rel attribute.
i know i cannot do it so i'm trying to get the data from the href attribute, setting a new attribute (rel), inserting the data inside it and then removing the href attibute.
basically i'm doing this:
$('div#menu ul li a').each(function(){
var lin =…