•
•
•
•
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 373,932 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,207 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: 766 | Replies: 1
![]() |
•
•
Join Date: Jan 2007
Posts: 12
Reputation:
Rep Power: 2
Solved Threads: 0
I really need help on this one.
The problem is quite simple-
I've got many text fields that user has to fill. The thing I can't figure out is how NOT to allow go to next field if the length of current field's value is less than 6 digits. I tried something like this, but I know almost nothing about javascript so it's not working:
And I've put this in onBlur event... Could anybody help me?
The problem is quite simple-
I've got many text fields that user has to fill. The thing I can't figure out is how NOT to allow go to next field if the length of current field's value is less than 6 digits. I tried something like this, but I know almost nothing about javascript so it's not working:
var lg = getField("From[0]").value.length;
if(lg<6 && lg>0){
getField("From[0]").setFocus();
}And I've put this in onBlur event... Could anybody help me?
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,906
Reputation:
Rep Power: 9
Solved Threads: 216
Not my are of expertice but maybe this can help, link
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Javasript code not working
- Next Thread: Any Help Appreciated



Linear Mode