Highlighted

JavaScript Error

Avatar

03-02-2009

Hello. I'm a beginner, and I need HELP! I'm trying to create a collapsible / flowing form [not sure if that is correct terminology]. Everytime I run the JavaScript checker, I get this message:



Error: Expected ;, Line: 4.



I have a semi-colon at the end of the line - but still get same error. Here is a sampling of the script. Can anyone help. I can forward the file, if need be.



if (this.rawValue == 1){

LossRuns-4yrs.presence = "visible";

AutomobileQuestionnaire.presence = "visible";

MVRsorDriversList.presence = "visible";

SwimmingPoolQuest.presence = "visible";

Replies

Highlighted

Avatar

Avatar

Jono_Moore

Total Posts

1.2K

Likes

109

Correct Answer

144

Avatar

Jono_Moore

Total Posts

1.2K

Likes

109

Correct Answer

144
Jono_Moore

03-02-2009

Do you have a closing brace "}" after the last line?
Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

09-02-2009

Send the file to livecycle8@gmail.com and I will have a look when I get a chance.