title: Get the type of the HTML element from a jquery object
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8388470/get-element-type-with-jquery">Get element type with jQuery</a>  </p>
  </blockquote>
  
  
  
  <p>Preamble: I'm Italian, sorry for my bad English.</p>
  
  <p>From an html code like this:</p>
  
  <pre><code>&lt;input class="myElem" /&gt;
  &lt;input class="myElem" /&gt;
  &lt;div class="myElem"&gt;&lt;/div&gt;
  &lt;ul class="myElem"&gt;&lt;/ul&gt;
  &lt;input class="myElem" /&gt;
  </code></pre>
  
  <p>is there a way to retrieve the html objects type?</p>
  
  <p>something like:</p>
  
  <pre><code>$('.myElem').each(function () {
        var htmlType = $(this).type() //Example
        console.log(htmlType);
  });
  
  /* Log:
  *    input
  *    input
  *    div
  *    ul
  *    input
  */
  </code></pre>