0

I'm sorry if it's not the right place for this question, but 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:

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?

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Wiizl
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.