I have an asp.net web application, in that application, I allowed only decimal in a few fields. It is working successfully on Google Chrome, Mozilla, Opera browser in Windows and Mac both OS but is not working in Safari browser in Mac OS.
To restrict string on keypress event, I used following regular expression:
var RegExp= /^[-+]?[0-9]*\.?[0-9]+$/
Why does this problem occur?
I will be grateful if anybody provides any idea of it.