Why does this select not work?

Head out to http://brucegust.com/portfolio/verizon/test_code.php. When you choose the project under "project type," I've got some Javascript that's grabbing some content and auto populating the description, requirements and determination field. Thing is, it's not working and I don't know why.

The select statement is "compliance_id." I'm sending that up to my "Family()" function and...

Where am I blowing it?
Bruce GustPHP DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi,
this is not working as you have a huge bunch of syntax errors and hence the script is incomplete and not working.
A multiline javascript string has to have a Space + Backslash at the end of the line, so that the JavaScript engine knows that the string continues the next line.
Second you have to escape quotes with \"

Sample part of your script should then look like;
function Family() {
var c_description = new Array();
var c_requirements = new Array();
var c_determination = new Array();c_description[1]="Project A - default";c_requirements[1]="default";c_determination[1]="default";
    c_description[2]="Network driven micro-coverage only to public.  No back-up generator or ground presence.";
    c_requirements[2]="For this project type to obtain a waiver of due diligence all 4 of the following requirements must be met:\

(1) The Landlord offers standard environmental contractual protections in the lease \
(2) The building is of recent construction post-1980 \
(3) The project DOES NOT require roofing material disturbance or core drilling \
(4) The project DOES NOT require flooring material disturbance \

 If you answer \"No\" to any of the 4 requirements, you must select \"No\" in the drop down box. ";

Open in new window

HTH
Rainer

BTW: using Chrome and the integrated dev tools indicate the script error and the location of the error

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bruce GustPHP DeveloperAuthor Commented:
Thanks, Rainer! Using your counsel, I found a bunch of errors that I'm slowly digging my way out of.

I am making progress, though! Got another question at http://www.experts-exchange.com/Programming/Languages/Scripting/PHP/Q_28678710.html if you want to weigh in.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.