Dave Johnson
|
| Posted: 07/31/2003, 1:47 PM |
|
Hi all,
Just wondering what method one can use to have two listboxes on a form with one of the list boxes being filtered by the value chosen in the first listbox. For example, if you have a vehicle make listbox (Ford, Honda, etc) and a vehicle make listbox (Explorer, Civic, etc) and you want the models to be only for the selected makes - then how can one do that? How can one submit a form and not have it update/delete/add/cancel??? Thanks.
Cheers,
Dave
|
|
|
 |
mkmind
|
| Posted: 08/01/2003, 10:25 PM |
|
Hello.
You must go to the html Section in CCS to your first Listbox. Then put this also in the select.
onchange="javascript:location.href ='Your_Side.php?Your_vehicle_Field_id='+this.value;"
So looks complete:
<select class="CobaltSelect" name="{Your_vehicle_Field}" onchange="javascript:location.href ='Your_Side.php?Your_vehicle_Field_id='+this.value;">
So you have the id from the first Listbox in the url and you can handle it for the where class in the second Listbox.
Sorry about my english and i hope it helps
By martin
|
|
|
 |
|