There is two choices; english or nonenglish. When you don't choose any of them or chose both of them, it is supposed to give error but it doesn't give. Could you please help?Thank you. ps: Even though I make it one checkbox for terms and conditions, alert doesn't work.
JavaScript
function onFormSubmit(form_element) {
if (form_element.click.checked == false)
{
alert("Please check language");
return false;
}
return true;
}
HTML
<form onsubmit="return onFormSubmit(this)">
Language: <input type="checkbox" name="click" value="english">english
</form>
clickas its a keyword on JS.