title: How to find tag is parent elements?
body: <pre><code>&lt;div class="plp-product"&gt;
    &lt;a href="#"&gt;
      &lt;img src="../../../kay/images/PLP/jared_000.jpg" /&gt;
      &lt;small class="more-options"&gt;More options available&lt;/small&gt;
      &lt;h3&gt;Neil Lane Engagement Ring 1 3/8 ct tw Diamonds 14K White Gold&lt;/h3&gt;
      &lt;h4 class="price"&gt;$4,299.00&lt;/h4&gt;
      &lt;h4 class="price price--sale"&gt; &lt;/h4&gt;
      &lt;a href="#" class="button--quick-view"&gt; &lt;span class="icon-search"&gt;&lt;/span&gt; Quick View&lt;/a&gt;
      &lt;label class="compare-button"&gt;
        &lt;input type="checkbox" id="item1" class="chk" onclick="getImg(this)"&gt;Compare&lt;/label&gt;
    &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>  var getImg = function(val){
       var data = document.getElementById(val.id).parentElement.parentElement;
           data.find('img');}
  </code></pre>
  
  <p>I want access the img tag in data. Not able to find a workaround for this.Please help me on this. Thanks.</p>