title: HTML 5 Currency format
body: <p>I am using lots of HTML 5 input controls in my pages. One of my requirement is to have a textbox with currency feature. For this i tried this:</p>
  
  <pre><code>&lt;input type="number" pattern="(d{3})([.])(d{2})" /&gt;
  </code></pre>
  
  <p>This allows me to type values like 10,000.00</p>
  
  <p>But still all its not meeting all my requirements. I want that if the user types in 10000
   it should convert it to currency format like 10,000 onblur.</p>
  
  <p>And when i read the value from the input type in my Javascript, it should give me a float instead of a string value which i cannot use to calculate without parsing.</p>