Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-25-2008, 08:07 PM   PM User | #1
edavis5451
New to the CF scene

 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
edavis5451 is an unknown quantity at this point
Multiple options

I have a problem creating multiple options in JavaScript.

Here is the scenerio:

I have 2 lists with 3 options each that users can select. On the first list they can either select from the dropdown menu or click on 1 of 3 images.

Then, they select from the second list with another 3 options and corresponding images. (You can only select options from this list once the first list of options is selected)

After the final selection you click a button and it will take you to new page depending on what options you selected. A total of 9 variables.

The problem:

The user is able to click either the image or dropdown from the first list, but the second list only allows you to select from the dropdown menu. If you click the image it will clear out the 2 options list.

Does anyone have a basic "fill in the blanks" code for this scenerio?
edavis5451 is offline   Reply With Quote
Old 08-25-2008, 08:39 PM   PM User | #2
Jodarecode
New Coder

 
Join Date: Oct 2007
Location: Washington
Posts: 86
Thanks: 3
Thanked 2 Times in 2 Posts
Jodarecode is on a distinguished road
This link may help

http://www.dhtmlgoodies.com/index.ht...chained_select
__________________
"The one closer to the truth is the one still learning"
Jodarecode is offline   Reply With Quote
Old 08-25-2008, 09:48 PM   PM User | #3
edavis5451
New to the CF scene

 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
edavis5451 is an unknown quantity at this point
Thanks, but I'm looking for something that allows the user to click an image that will fill in the dropdown menu selection. And be able to do this twice on one page.
edavis5451 is offline   Reply With Quote
Old 08-26-2008, 04:14 AM   PM User | #4
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
Show us your attempt. The link from edavis5451should have been a good reference.
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Reply

Bookmarks

Tags
javascript, list, multiple, options

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:25 AM.


Advertisement
Log in to turn off these ads.