A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 5 years ago
Alpha Numeric problem in Javascript..?
I Have a textbox and I need this textbox to do the following:
1] First one should be character followed by number [eg A1234]
2]No letter should be typed after the first character.
3]No space should be provided between the character & number.
anonymous
 5 years ago
Alpha Numeric problem in Javascript..? I Have a textbox and I need this textbox to do the following: 1] First one should be character followed by number [eg A1234] 2]No letter should be typed after the first character. 3]No space should be provided between the character & number.

This Question is Closed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0What you need to use is regular expressions in Javascript. You can learn more abt it at http://www.w3schools.com/jsref/jsref_obj_regexp.asp

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0we can do it only with the help of regular expressions var re=new RegExp("[azAZ][09\.]{1","g"); try this

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0ther's a mistake var re=new RegExp("[azAZ][09\.]{1}","g");

rsmith6559
 5 years ago
Best ResponseYou've already chosen the best response.0Wouldn't: var re = new RegExp( "[AZaz][09]+", "g" ); or: var re = new RegExp( "[AZaz][09]{4}", "g" ); do it?
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.