jquery - How to change name of attribute -


How can I change the name of the attribute, for example, I have "rel", and I want to change it "Rel2" When the site is ready, is it possible?

  var oldrel = $ (l) .attr ('rel'); $ (L) .attr ('rel2', oldrel) .removeAttr ('rel');    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -