siebke
12-17-2003, 06:05 AM
Hye there.
I'm using a form validation script with checks on the required inputfields like:
if (name.value=='')
{
alert('Your name please');
name.focus()
return false;
}
The problem:
I want to do the same on another inp.field.
Except it has to check on 2 different things.
Meaning:
- if the value is only numeric and not alphabetic (for Example: 153679 would be correct and abcde or A3677 would'nt)
- next he should also check if the length of the value = 7 or > 7(greater)
Could someone please help fast?
Thank you very much...
regards Siebke.
I'm using a form validation script with checks on the required inputfields like:
if (name.value=='')
{
alert('Your name please');
name.focus()
return false;
}
The problem:
I want to do the same on another inp.field.
Except it has to check on 2 different things.
Meaning:
- if the value is only numeric and not alphabetic (for Example: 153679 would be correct and abcde or A3677 would'nt)
- next he should also check if the length of the value = 7 or > 7(greater)
Could someone please help fast?
Thank you very much...
regards Siebke.