Dynamic dropdowns based on eachother

I am trying to dynamically change my second drop-down depending on the value of my first drop-down.

[CODE][/CODE]
This code is just to kind of demonstrate how I want it. I am using Config::get to get the array of options.
An example would be
[PHP]$skins = Config::get(‘app.1_skin’);[/PHP]
When the value of my first drop-down is 1. I am not super familiar with PHP, or js for that matter so if anyone could hook me up with some guidance I would appreciate it a lot!

What you are talking about is called a Chained Select. Look it up. There are many examples out there.

I have a demo of this at http://daveismyname.blog/demos/dynamically-bound-select/

A tutorial http://daveismyname.blog/dynamically-binding-select-menus-with-php-jquery it’s old the but the demonstrates the principles of doing the ajax requests with php.

Sponsor our Newsletter | Privacy Policy | Terms of Service