Populate one dropdown list based on the selection of other dropdown list using json
Hi,
I would like to the same thing as
http://jsfiddle.net/kasperfish/r7MN9/3/ using json instead of arrays.
With second select menu like this
- <select id="item">
- <option value="1">Mercedes</option>
- <option value="2">Volvo</option>
- <option value="3">BMW</option>
- <option value="4">porche</option>
- </select>
OR
- <select id="item">
- <option value="1">Samsung</option>
- <option value="2">Nokia</option>
- <option value="3">Iphone</option>
</select>
Could anyone help me with that please?