View Full Version : Dynamic Dropdown Menus

Nov 21st, 2010, 12:29 AM
Hi there, im new to the forum and currently in the process of building a website.
Unfortunetly it needs a little javascript putting in and I dont know any javascript atall.

So heres my problem:

I want 3 drop down menus where
you change the top option, the middle menu updates (from a sql database),
you change the middle option then the bottom option updates (again from the database).
you select the 3rd option.
it searches a database for the item matching all 3 entrys
it displays the price

all without reloading the page

then you add the item to cart.

Heres my site with fake data in the dropdowns:

Nov 21st, 2010, 07:26 AM
You can make really simple ones with some basic css. I think the hover pseudoclass is css1. Here's a css one:
and a javascript one:
They're both pretty basic. Given that you're using databases and what not I can't see why you couldn't handle these.

Sort of didn't really read what you wanted there. Are you saying the content of the list changes depending on what you pick? If so you may need to look into ajax not javascript.