$('.target-blank').each(function() { $(this).attr('target', '_blank'); }); One line of jQuery, as shown above, allows you to omit your target attribute in favor of the XHTML Strict…
$('.target-blank').each(function() { $(this).attr('target', '_blank'); }); One line of jQuery, as shown above, allows you to omit your target attribute in favor of the XHTML Strict…