Menu
hi guys,
i need check box validation. if i didn’t check it then it must alert error “please agree term and condition”.
if it checked it it should not return and thing.
i m using following code
function checkBoxes(fld)
{
if (!fld.checked)
{
error =”Please agreed to the Terms and Conditions!”;
return error;
}
return true;
}
it works well. when i didnt check it return error.but if i check it. it again lert “true”.
i need to skip return true.if i check it it didnt show alert.
any one know how to?