[thelist] JavaScript form validation - do all radio groups have a selection checked?

Christian Heilmann codepo8 at gmail.com
Mon Aug 1 12:12:47 CDT 2005


>         alert("in the script")
>         myWholeFormArray = document.theForm.elements
>         for (a = 0; a < myArray.length; a++

^ you forgot to close the parenthesis.

Other things that might cause it: onSubmit instead of onsubmit, wrong
filename, form as variable name (might be reserved).

What does the JavaScript console say? I found the above with this
wonderful tool.
http://icant.co.uk/forreview/browsertests/

-- 
Chris Heilmann 
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/  
Binaries: http://www.onlinetools.org/


More information about the thelist mailing list