posted 21 years ago
Hi this is a code
function digit()
{
for(ic=1;ic<=124;ic++)
{
s=Form.elements[ic].value;
s1=Form.elements[ic].name;
r=/^[0-9]{1,}.?[0-9]*$/;
if(!(r.test(s)))
{
alert("enter valid data");
Form.elements[ic].focus();
Form.elements[ic].value="0";
return false;
}
}
}
Hi Iam using this code to check an entry by user is it valid or not..
it works cool with IE and
No response from Netscape..
if i change it to
s=Form.fieldname.value;
it works cool ..
Problem is this Iam having more than 50 fields and it is not possible to write for all..
field like this..
any soln appreciated .
Iwant to use it in netscape 4.1 and higher
version
thx in advance