Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi, i would like to ask on how to prevent or display alert that user must not input any character in my text field because i want user just to input numbers in that text field.

any help are much appreciated. :)
Posted

http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric[^]

If i misunderstand your question, please feel free to correct me.
 
Share this answer
 
u can use javascript for tat

Use
var attendees = "Four members present";
// Ensure that the value is numerical
if( isNaN(attendees) )
    alert("Please enter a number for the number of attendees.");
function for that
Regards
Raj
 
Share this answer
 
v3
Comments
silverantes 29-Mar-11 12:55pm    
thx Raj, i will try ur code and reply here if i have any problem with it :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900