HTML input type number does not return value when having ., values

My project having requirement to show iphone keyboard with number, dot and comma values. I have tried to use type=”tel”, but it does not show dot comma values.

Then decide to use type=”number”, its allows all values but when trying to retrieve values with dot,comma jQuery returns empty string.

HTML:

JS:
$(this).val()

Fiddle :
jsfiddle.net/Boopathi_Sakthivel/hgLpc4ko/

Please suggest.


Source: html5

Leave a Reply