Forum Moderators: open
How do I do this using document.write in the function?
I currently have:
function clearDate()
{
//if (document.add_user.p_exempt_date.value="Y")
if (document.add_user.p_exempt_date.checked == true)
{
document.add_user.p_v_date.value = " ";
document.add_user.p_v_date.disabled = true;
document.add_user.getDate.disabled = true;
document.write("User is EXEMPT from date expiration");
}
else
{
document.add_user.p_v_date.disabled = false;
document.add_user.getDate.disabled = false;
document.write("User is NONEXEMPT from date expiration");
}
}
Which works, but it clears the whole screen. Ideally I need it to display the message over the checkbox.
Any ideas are appreciated.