title: Getting the type of a control using Javascript and JQuery
body: <p>I am trying to use JQuery to get the type of control and following is the code that I am using.</p>
  
  <pre><code>$('#selCity').attr('type')
  </code></pre>
  
  <p>where selCity is of type select. When I try the above code it returns as undefined but when I use the alternative code with Javascript, it returns the correct type.</p>
  
  <p>Please look into this fiddle to understand it clearly: <a href="http://jsfiddle.net/Ye8e9/">http://jsfiddle.net/Ye8e9/</a></p>
  
  <p>Could someone advice on how I can acheive this correctly using JQuery? Is this an issue with JQuery or am I making a mistake?</p>