So I took a look over at This post and it "almost" does what I want. The issue is that in this example the vales of both drop downs are the same so its as easy as saying:
$("#dropdwon1").change(function(){
$("#dropdwon2").val($(this).val());
});
The issue for me is that I want to map one value to another.
In the example I'm using I want the value of 'cow' from the first drop down to select the value of '134' in the other. You can see my jFiddle to actually see the Class Type dropdown and the hidden one. So the mapping would be:
<select id="edit-type" name="type" class="form-select">
<option value="All" selected="selected">- Any -</option>
<option value="bull">Bulls</option>
<option value="cowpair">Cow/Calf Pair</option>
<option value="cow">Cows</option>
<option value="feeder">Feeders</option>
<option value="female">Replacement Females</option>
<option value="stocker">Stockers</option>
</select>
with:
<select id="edit-field-class-tax-tid" name="field_class_tax_tid" class="form-select">
<option value="All" selected="selected">- Any -</option>
<option value="139">Stockers</option>
<option value="136">Cow/Calf Pairs</option>
<option value="134">Cows</option>
<option value="138">Feeders</option>
<option value="135">Replacement Females</option>
<option value="137">Bulls</option>
</select>
All = All
bull = 137
female = 135
stocker = 139
cowpair = 136
cow = 134
feeder = 138
I'm really scratching my head over this one.