Hi,I want to retain value of checkbox,when some validation error occours.
In this i am calling a function checkCheckBoxes() & want to call this function
when validation error occours.
<input type="checkbox" name="chk1" onclick='checkCheckBoxes() <?php if (isset($_POST['chk1'])) echo ' checked="checked"'; ?>'/>check for Birth year only
function
function checkCheckBoxes()
{
if(document.myform.chk1.checked)
{
document.myform.day.disabled=true;
document.myform.Month.disabled=true;
}
else
{
document.myform.day.disabled=false;
document.myform.Month.disabled=false;
}
}