How to handle floats and decimal separators with html5 input type number
问题 Im building web app which is mainly for mobile browsers. Im using input fields with number type, so (most) mobile browsers invokes only number keyboard for better user experience. This web app is mainly used in regions where decimal separator is comma, not dot, so I need to handle both decimal separators. How to cover this whole mess with dot and comma? My findings: Desktop Chrome Input type=number User enters \"4,55\" to input field $(\"#my_input\").val(); returns \"455\" I can not get the