File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes validate text-only text field Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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 ]

Regards,<br /> <br />karthikeyan<br /> <br />Life is Beautiful..<br />Enjoy every Moment
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: 56191
    
  13

Check into JavaScript regular expressions.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

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: 56191
    
  13

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: validate text-only text field
 
Similar Threads
Q: do I need to verify port number?
Invalid character set for URL
Validate textbox to accept only numeric values.
Set the textfield (optional) in the form
Alphabets only valitation