close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Control Colapsable Panels with Select List

Thread began 2/24/2010 1:00 am by Daryl | Last modified 2/27/2010 12:15 pm by Daryl | 1862 views | 2 replies

DarylBeta Tester

Control Colapsable Panels with Select List

I am trying to open a Colapsable Panel if one option is selected OR other panels if a different option is selected.

The code I have is

<select class="formMenufield_Medium" name="Insurance_group_Insurance_Product" id="Insurance_group_Insurance_Product" tabindex="5" onblur="hideServerError('Insurance_group_Insurance_Product_ServerError');" onchange="if (this.options[this.selectedIndex].value=='4');
if (this.options[this.selectedIndex].value=='5');;;;">
<option value="1">Buildings Insurance</option>
<option value="2">Contents Insurance</option>
<option value="3">Buildings and Contents Insurance</option>
<option value="4">Tenants Contents Insurance</option>
<option value="5">Landlords Buildings Insurance</option></select>

At the moment if I select value 4 everything opens, but if I select value 5 only the items listed open.

How would I stop the script after value 4 has been selected (so that value 5s option aren't opened?)

I was thinking of an else type statement but I am still learning this stuff.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...