I have back to back text boxes used to create university account numbers. I'm
actually creating them with a script so they can create as many account
numbers as they need.
<edited and cut down script>
<input type="text" size="5" name="fund_1" onBlur="checkact(this)">
<input type="text" size="5" name="org_1" onBlur="checkact(this)">"
function checkact(entry){
if (!Is_In_Format( entry.value, "dddddd")){
alert("Format: 123456");
entry.focus();
}
}
It works fine UNLESS...they enter the wrong format in "fund_1" and click
the "org_1" text box. They get an alert message (because "fund_1" is wrong)
and the script moves the focus back to "fund_1" which gives them an alert
message becuse they did not properly fill out "org_1"...well, you see where
I'm going with this.
How do you handle this type of thing?