title: How to properly get <i> elements inside a <p> element in jQuery?
body: <p>I am trying to get the text from the i (italic) elements inside a paragraph with
  this code:</p>
  
  <pre><code>$('p').each(function(j, element){
      if($(element).is("i")){
          console.log("The value is: "+$(element).text());
      }
  });
  </code></pre>
  
  <p>But the flow never enters the if condition.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks in advance!</p>