title: how i can check that parent is span or anchor in html?
body: <p>how i can check in this code that the parent in loop is span or div.</p>
  
  <pre><code>$('a img, span img').each(function(n){
  var c= $(this).parent();
  console.warn(c)
  });
  </code></pre>
  
  <p>i want to know if this possible to check that find the parent tag is span or anchor in html</p>
  
  <p>how i can check in this code that the parent in loop is span or div.</p>
  
  <pre><code>$('a img, span img').each(function(n){
  var c= $(this).parent();
  console.warn(c)
  });
  </code></pre>
  
  <p>i want to know if this possible to check that find the parent tag is span or anchor in html</p>