I have 3 select boxes and all are having same value (clones) & created on change of reference table selection. now i want to manage the selection on the three Constraint d
I have updated the code. This is what you are looking for
$('select').change(function() {
if ($(this).val() == 'other') {
$('#select1, #select2, #select3').not(this)
.children('option[value="other"]')
.remove()
} else {
if ($('#select1, #select2, #select3').not(this).find('option[value=other]').length > 0) {
} else {
($('#select1, #select2, #select3').not(this)
.append(''))
}
}
});
http://jsfiddle.net/dZqEu/2003/