Populate one dropdown list based on the selection of other dropdown list using json

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
  1. <select id="item">
  2. <option value="1">Mercedes</option>
  3. <option value="2">Volvo</option>
  4. <option value="3">BMW</option>
  5. <option value="4">porche</option>
  6. </select>
OR

  1. <select id="item">
  2. <option value="1">Samsung</option>
  3. <option value="2">Nokia</option>
  4. <option value="3">Iphone</option>

</select>

Could anyone help me with that please?