End user will enter a code on form, I need to ensure that this code is no longer than 6 characters.
Thought I could use something like:
if (document.Submit.CODE.length.value > 6 )
{
alert("Please enter a valid code.\n"
;
document.Submit.CODE.focus();
return;
}
But this errors out, what am I doing wrong ? Help is much appreciated.
Thought I could use something like:
if (document.Submit.CODE.length.value > 6 )
{
alert("Please enter a valid code.\n"
document.Submit.CODE.focus();
return;
}
But this errors out, what am I doing wrong ? Help is much appreciated.