This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaScript alphanumeric validation

 
Rinkit Shah
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to validate a login field such that it is mandatory for the user to enter both numbers as well as alphabets can anyone give a hint on this.
Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where's your code so far? What problems are you having with it?
 
Rinkit Shah
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Bear next time I will take care of putting my comments in relevant forum.

I have made validation

frmvalidator.addValidation("loginName","req","Please enter your Login Name");
frmvalidator.addValidation("loginName","maxlen=20", "Max length for Login Name is 20");

same I can include as alnum instead of req field for accepting only alphanumeric characters but it is not working properly so needed some guidance on this.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic