I want to validate contact number field.That field allow only number.how to i validate use javascript
maruthuit2k5
0
Newbie Poster
Recommended Answers
Jump to Posttry this:
if(isNaN(d.number.value)){alert("Please Enter only Numbers in Phone no Feild"); d.number.value="";d.number.focus();return false;}
All 3 Replies
Shanti C
106
Posting Virtuoso
essential
84
Posting Shark
Featured Poster
anuj_sharma
-3
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.