Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validate text-only text field

 
Karthikeyan Ravindran
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Script (ECMAScript) is NOT Java.

Try the HTML and JavaScript forum.
[ November 20, 2007: Message edited by: Bill Shirley ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64696
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check into JavaScript regular expressions.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64696
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Friends
 
Karthikeyan Ravindran
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
am new member of javaranch.. i dunno the procedures for asking questions.. sorry if i wasted anyone of his/her time..
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64696
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic