i have problem to valid digit in textbox in IE 9 and firefox 4 & 5,
is any one know ?
i try all previous question’s answer but still face problem,
i just want use to enter only digit in textbox,
i am use asp.net too for code language.
i have problem to valid digit in textbox in IE 9 and firefox 4
Share
As far as I’ve understood you want to allow only numeric characters in the text field and you will return other characters if they are not numeric. So, you may go through this
step1. create a javascript function
step2. onkeypress call the function like this
If you call any javascript method on any event the first parameter always passed is event. For IE you need to catch the event by window.event.
For more clear ideas you can visit:- https://developer.mozilla.org/En/DOM/Event