How can i do this? +2 ...">

How can I add rel to <a> tag with jQuery?

I want to use jquery to add tag rel="shadowbox"

to tag<a>

How can i do this?

+2


a source to share


1 answer


$('a#myid').attr('rel', 'shadowbox');

      



+10


a source







All Articles