Skip to Content
0
Former Member
Apr 17, 2009 at 07:51 AM

how to check if an entered value in a input box is a number or a character

48 Views

Hi All,

Well, can any one tell me how to display an error message when a user enters numbers instead of characters in an input box or vice versa.

Example: enter costs:----


here the user is supposed to enter only numbers but now the user enters a character by mistake ,an error message shoud be displayed saying "only numbers can be entered"

Regards,