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:
<input type="number" pattern="(d{3})([.])(d{2})" />
This allows me to type values like 10,000.00
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.
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.