selector find parent sibling(img_wrap img)
<p>below code try to make if btn mousedown find parent siblings(img_wp) img, but it doesn't work. my code wrong in somewhere?</p>

<pre><code>$('.btn').mousedown(function(e){
    var target_img = $(e.target).parent().closest('.img_wp img');
    var target_img_w = target_img.width();
    var target_img_h = target_img.height();
    console.log(target_img_w + target_img_h);
});

&lt;div class=\"wp\"&gt;
    &lt;div class="img_wp"&gt;
        &lt;img&gt;
    &lt;/div&gt;
    &lt;div class="btn_wp"&gt;
        &lt;div class="btn"&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
 &lt;div class=\"wp\"&gt;
    &lt;div class="img_wp"&gt;
        &lt;img&gt;
    &lt;/div&gt;
    &lt;div class="btn_wp"&gt;
        &lt;div class="btn"&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>
