Reputation: 425
If I select x value in the first drop down list, then Y value would be selected on the second drop down list.
Upvotes: 0
Views: 214
Reputation: 100175
If you wan it in jQuery then;
$("#yourFirstSelectId").change(function() {
var firstSelected = $(this).val();
$("#yourSecondSelectId option:selected").val(firstSelected);
});
Upvotes: 3