あなたのコメントから
I don't want to make an ajax call, I want to store all the data client side in a javascript object, I am asking how to structure that data
だからただのアイデア
HTML
<select id="cars_company">
<option value="ford">Ford</option>
<option value="toyota">Toyota</option>
</select>
<select id="cars">
<option value="ford_car_one">Ford Car One</option>
<option value="ford_car_two">Ford Car Two</option>
</select>
JS
$(function(){
cars={
ford:{
ford_car_one:'Ford Car One',
ford_car_two:'Ford Car Two'
},
toyota:{
toyota_car_one:'Toyota Car One',
toyota_car_two:'Toyota Car Two'
}
};
$('#cars_company').on('change', function(){
$('#cars').html('');
$.each(cars[$(this).val()], function(k, v){
$('<option></option>').val(k).text(v).appendTo($('#cars'));
});
});
});
デモ。
</ p>