# Forms

When creating a form, validation is HUGE! In this example, we are going to check and see of the checkbox is checked in the form prior to submission.

var checkForm = function() {
if (document.myForm.theBox.checked) {
} else {
}
}


When creating a form, JS already creates the necessary form object(s) each form in a view is actually listed into an array

<form name="myForm">