Reputation: 4395
I want to use jquery to add a rel="shadowbox" to a <a> tag
rel="shadowbox"
<a>
How can I do this?
Upvotes: 2
Views: 667
Reputation: 23770
$('a#myid').attr('rel', 'shadowbox');
Upvotes: 10