Hi! I am new to Javascript and just can't figure out how to validate list menus and check boxes in forms. I need them for my site. Please guys, I really need help! Thanks in advance!
<body onsubmit="validate()"> List: function validate() { if(document.getElementById("formElementID").value == "") { return false; } } Checkbox: function validate() { if(document.getElementById("formElementID").checked == false) { return false; } }