jQuery select parent a of an image
<p>I am trying to select the anchor tag and add a target attribute. When it is wrapped in a image with the class size-thumbnail. Anyone know why this wont work?  </p>

<pre><code>&lt;a href="example"&gt;&lt;img class="size-thumbnail" src="example"&gt;&lt;/a&gt;
</code></pre>

<p>jquery</p>

<pre><code>$('.size-thumbnail:parent').attr('target','_blank');
</code></pre>
