•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,690 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,205 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1379 | Replies: 3
![]() |
| |
•
•
Join Date: Dec 2004
Posts: 24
Reputation:
Rep Power: 4
Solved Threads: 0
Hi all,
I was wondering if somebody could help me...
I have a form field which I want to lock down so users can only enter a specific combination
eg. first character is a letter - can be either B,C,W,F,A,H which is followed by seven numbers.
I have got some script which only accepts numbers but I do not know enough about javascript so that I can amend it to accept the leading character.
Thanking you all in advance
I was wondering if somebody could help me...
I have a form field which I want to lock down so users can only enter a specific combination
eg. first character is a letter - can be either B,C,W,F,A,H which is followed by seven numbers.
I have got some script which only accepts numbers but I do not know enough about javascript so that I can amend it to accept the leading character.
Thanking you all in advance
•
•
Join Date: May 2008
Location: Nant-y-moel, South Wales
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
This may help :
http://ginger-space.blogspot.com/200...alidation.html
Amend and expand the code that's in there checking which character you're on and using an ASCII chart to find the codes for the letters you want to allow in position 1. You could also check for the lower-case values and convert to the upper-case values, if you wanted to.
Anthony
http://ginger-space.blogspot.com/200...alidation.html
Amend and expand the code that's in there checking which character you're on and using an ASCII chart to find the codes for the letters you want to allow in position 1. You could also check for the lower-case values and convert to the upper-case values, if you wanted to.
Anthony
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: checbox validation - confuse
- Next Thread: get element ID using value


Hybrid Mode