weaveoftheride
weaveoftheride

Reputation: 4395

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

I want to use jquery to add a rel="shadowbox" to a <a> tag

How can I do this?

Upvotes: 2

Views: 667

Answers (1)

clyfe
clyfe

Reputation: 23770

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

Upvotes: 10

Related Questions