I'm attempting to add target="_blank" to an a tag that I've wrapped around an ID for a column containing a number of elements.
I've tried adding the attribute target="blank", but it doesn't appear to be working.
Here is the column I've wrapped with an a tag.
<div id="loyatycol1">id="loyaltycol1"> This is some text. <img src="#" alt="A Picture" /> </div> Here is the javascript code.
jQuery(function($) { $("#loyaltycol1").wrap("<a href='www.examplesite.com'></a>").attr('target','_blank'); }); How can I get the a tag to have target="_blank"?