| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > Javascript controlling menu dropdown contents |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Spare Parts
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 5,110
|
Javascript controlling menu dropdown contents
Hello, Can anyone tell me how to solve this problem? I have a list of customers, and a list of contacts each of which is associated with a customer. When the visitor selects a customer from dropdown A I want dropdown B to become populated only with the contacts associated with that customer. The list of customers comes from one database 'customers' and the list of contacts from a db 'contacts'. Using PHP and mySQL. Any suggestions gratefully received. |
|
|
|
|
|
#2 (permalink) |
|
Rough Creep Arse™
|
http://www.felgall.com/jstip22.htm You'll be wanting this. Use PHP to populate the javascript. It's not the best code, but you'll get the general idea. |
|
![]() |