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

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 11-21-2011, 10:48 AM   PM User | #1
Solistic
New to the CF scene

 
Join Date: May 2011
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Solistic is an unknown quantity at this point
Creating a product selector dependant on multiple dynamic dropdown questions

Hi guys,

Basically this is what i'm trying to achieve in either/or jQuery & PHP.

You have a number of questions as dropdowns starting with one, you select an option and then another dropdown's values will change dependant what you have selected. You choose one of these options and a 3rd dropdown will change depandant on that selection etc.... at the final step a product will be displayed based on your previous selections.

Eg.

1. What is your favorite colour?
- Red
- Blue

(If you choose red, you get this question)

2. Do you prefer light or dark red
- Light
- Dark

(however if you selected blue, you get this question)

2. What shade of blue do you prefer?
- Light blue
- Medium blue
- Dark blue

etc... etc....

Final question then reveals a product based on all your answers.

Hope this makes sense, just wondering if anyone has done anything similar to this in the past, or know of a good place to start for me to build this. The way I was starting to put this together in my head is each dropdown answer has a value attached to it, these values are then added up as you go and at the end it'll display a product depending on what the value is. However not sure if there could be occasions where you could reach the same value by a different combination of answers therefor giving an incorrect result.

I may also be wanting to have these products stored in a database, also this will need to be adaptable to work on mobile devices.

Thanks in advance.

Last edited by Solistic; 11-21-2011 at 10:54 AM..
Solistic is offline   Reply With Quote
Old 11-21-2011, 04:04 PM   PM User | #2
Solistic
New to the CF scene

 
Join Date: May 2011
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Solistic is an unknown quantity at this point
I've managed to find a solution via another help forum using this link for anyone else who is after a similar thing - http://jsatt.blogspot.com/2010/01/ca...ng-jquery.html
Solistic is offline   Reply With Quote
Reply

Bookmarks

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 05:46 PM.


Advertisement
Log in to turn off these ads.