kcl
04-03-2003, 08:29 AM
How do i check if checkbox is checked then text is empty or not??
this is my rule:
if i didn't check checkbox then text can be empty,but if i checked checkbox,then text must be filled
i write like this,but it not working.
if (!theForm.Pagehot[0].checked){
if (theForm.DownDate.value == ""){
alert("下架日期請勿空白!!");
theForm.DownDate.value = "";
theForm.DownDate.focus();
return false;
}
}
How do I write??
thanks for reply
this is my rule:
if i didn't check checkbox then text can be empty,but if i checked checkbox,then text must be filled
i write like this,but it not working.
if (!theForm.Pagehot[0].checked){
if (theForm.DownDate.value == ""){
alert("下架日期請勿空白!!");
theForm.DownDate.value = "";
theForm.DownDate.focus();
return false;
}
}
How do I write??
thanks for reply