G
Guest
I have a textbox and want to allow my user to enter negative or positive
decimal values.
I want to do 2 things:
1) Only allow the user to type one minus sign (-)
2) Only allow the user to enter one point (.)
I would like to do this using Javascript or a Regular Expression.
Anyone got something that does this already?
decimal values.
I want to do 2 things:
1) Only allow the user to type one minus sign (-)
2) Only allow the user to enter one point (.)
I would like to do this using Javascript or a Regular Expression.
Anyone got something that does this already?