I'm trying to verify a form, to insure that all the questions are answered before it is submitted. Below is some code that does not work. I think the problem is in how I am checking on the value of the inside function. Please help me figure out how to get this verification to work.
var FormOK = true;
var x = 0
var FormOk = true
while ((x < document.forms[study_form].elements.length) && (FormOk))
if (document.forms[study_form].elements[x].value == '')
FormOk = false
if (FormOK == true) return true;
if (FormOK == false)
alert('Please enter the '+document.forms[FormName].elements[x].name +' and try again.')
This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.