i have written following code for for checking required field .
but fucus() is not working .......
Kindly help ASP
Code:
function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
{alert(alerttxt);
[B]focus();[/B]
return false;}
else {return true}
}
}
Kindly help ASP
Comment