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 string validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "string validation" Watch "string validation" New topic
Author

string validation

prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
i have a textfield of size 2 characters. this field should only accept only alphabets but not numbers. we have isNumeric that will allow a textfield to have only numbers. do we have any function that will allow only alphabets

thanks,
prathima.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
make a simple reg exp that checks for letters.

Eric
 
jQuery in Action, 2nd edition
 
subject: string validation