how to put target="_blank" in jQuery?
<p>I tried many variations to put <code>target="_blank"</code> in links with jQuery, but I can't get it to work.</p>

<p>Here's my code:</p>

<pre><code>var thumbfile = "&lt;?php echo $smit_iturl_v; ?&gt;";
jQuery(document).ready(function () {
    var actualHost = jQuery.trim(jQuery.url.attr("host"));
    jQuery("a img").each(function (i) {

        if (jQuery.trim(jQuery.url.setUrl(jQuery(this).attr("src")).attr("host")) == actualHost &amp;&amp;      
            (jQuery.url.setUrl(jQuery(this).attr("src")).attr("path")).indexOf("wp-content") != -1 &amp;&amp;

            isImage(jQuery.url.setUrl(jQuery(this).attr("src")).attr("file"))) {

            var parentTag = jQuery(this).parent().get(0).tagName;
            parentTag = parentTag.toLowerCase();

            if (parentTag == "a" &amp;&amp;
            jQuery.url.setUrl(jQuery(this).parent().attr("href")).attr("host") == actualHost &amp;&amp;
            jQuery.url.setUrl(jQuery(this).parent().attr("href")).attr("path").indexOf("wp-content") != -1 &amp;&amp;
            isImage(jQuery(this).parent().attr("href"))) {

                var description = (jQuery(this).attr("alt") == "") ? jQuery(this).attr("title") : jQuery(this).attr("alt");
                jQuery(this).parent().attr("href", thumbfile +
                        "?title=" + jQuery(this).attr("title") +
                        "&amp;description=" + description +
                        "&amp;url=" + stripDomain(jQuery(this).parent().attr("href"))

                );
            }
        }
    });
</code></pre>

<p>How can I do it?</p>
