Allow minus character at first in input box

Allow minus character at first in input box

Hi ,

I am using the below code to allow minus (-) sign at the first position, where it is happening. But if in case i enter a number and then move the cursor to first position i am unable to enter the minus (-) sign.


Looking forward for the response.

Thanks in Advance,
Ravindra