troubleshooting Question

Javascript Options Checking

Avatar of Richard Korts
Richard KortsFlag for United States of America asked on
JavaScriptHTML
4 Comments1 Solution237 ViewsLast Modified:
See attached html.

On line 100 there is a select element defined. I gave it the name fields[] so that when it is passed to the php processing program, it is recognized by php as an array.

Note on line 88 the onsubmit = "return chk_vals();". The purpose is to make sure the user selected at least ONE value from the select list named fields[].

Note on lines 39 - 52 the function chk_vals().

When I run the program (in Firefox), it says syntax error on line 42. I'm guessing it doesn't like the fields[].

How do I achieve what I want?
custs-by-criteria-sel.htm
ASKER CERTIFIED SOLUTION
leakim971
Multitechnician
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros