Ok. i have a simple form validation.
heres the code
<script language=“JavaScript” type=“text/JavaScript”>
<!–
function validate() {
if (!(comments.title.value || comments.comment.value)) {
alert(‘Please fill out the form.’);
event.returnValue=false;
}
}
//–>
</script>
as I said, very simple. The problem is, it wont validat the text box named “title”. it will make sure the “comment” box has something in it, but not in the “title box”.
thanks for any help.
-Naaman