Example 3.22. Setting attributes
$('a').attr('href', 'allMyHrefsAreTheSameNow.html'); $('a').attr({ 'title' : 'all titles are the same too!', 'href' : 'somethingNew.html' });
Copyright Rebecca Murphey, released under the Creative Commons Attribution-Share Alike 3.0 United States license.