wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes validate text-only text field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "validate text-only text field" Watch "validate text-only text field" New topic
Author

validate text-only text field

Karthikeyan Ravindran
Ranch Hand

Joined: Nov 20, 2007
Posts: 32
hai friends,
In Java Script validation how to validate a text box which contain only alphabets...if any number is entered it should throw an alert msg..
Can anyone help me ..
Regards
karthikeyan
[ November 20, 2007: Message edited by: Bear Bibeault ]
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
Java Script (ECMAScript) is NOT Java.

Try the HTML and JavaScript forum.
[ November 20, 2007: Message edited by: Bill Shirley ]

Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Check into JavaScript regular expressions.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Karthikeyan Ravindran, please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

I have adjusted the subject of this post for you.
Karthikeyan Ravindran
Ranch Hand

Joined: Nov 20, 2007
Posts: 32
Thank You Friends
Karthikeyan Ravindran
Ranch Hand

Joined: Nov 20, 2007
Posts: 32
am new member of javaranch.. i dunno the procedures for asking questions.. sorry if i wasted anyone of his/her time..
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Karthikeyan Ravindran:
i dunno the procedures for asking questions..


Welcome to Javaranch.
No need to be sorry.

You might be interested in our HowToAskQuestionsOnJavaRanch article.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Originally posted by Ben Souther:
No need to be sorry.

Indeed! The policies are in place to help you get better and quicker answers to your questions.
 
jQuery in Action, 2nd edition
 
subject: validate text-only text field
 
Similar Threads
Alphabets only valitation
Validate textbox to accept only numeric values.
Q: do I need to verify port number?
Set the textfield (optional) in the form
Invalid character set for URL