I have three dropdowns with the same option value I want to remove selected option value from 2nd and 3rd dropdown when the value is selected in first dropdown.
But problems comes when I change the new option value in first dropdown then previous selected value also remove from second and third dropdown
I want that when option value selected in first dropdown then should shows all value in second and third drop down expect selected value.
please help me
jquery code
$('#select_period').bind('change',function(){
var select_box=$("#select_period").val();
if(select_box =='select'){
} else {
if($(this).val() == select_box )$('#period_field option[value="'+select_box+'"]').remove();
if($(this).val() == select_box )$('#fav_period option[value="'+select_box+'"]').remove();
}
});
{ }) on the editor toolbar to nicely format and syntax highlight it! - marc_s