title: Getting tag name throw error ie browser using .prop() method
body: <p>In my validation, i am looping and spliting the element handling by it's type. when i call this function:</p>
  
  <pre><code>var tagName = $(element).prop('type').toUpperCase();
  </code></pre>
  
  <p>works fine all browsers apart from ie.</p>
  
  <p>in IE  how to get the type of element?</p>
  
  <p>the error is here:</p>
  
  <pre><code>SCRIPT5007: Unable to get property 'toUpperCase' of undefined or null reference
  </code></pre>
  
  <p><a href="http://jsfiddle.net/3gwebtrain/68kv5/24/" rel="nofollow">Live Demo</a></p>