posted 16 years ago
Hi,
I have a text field in which a user enters a numerical value(+ve or -ve). I want to let him enter the character "-" at the beginning of the number and not in between. How can i achieve this using javascript?
How do i interpret "/^\s*/" and "/\s*$/"?