Greetings I have this code, which removes the options to all the other select when one selects it first. But now I need to return the value to select another one.
Among them, for example, if I select the 1 in any, option 1 will disappear in the rest. If I select another option in this select, then the option that removes all the others will reappear.
I ask you please to help me, thank you in advance.
$(document).on('change','.sel',function(){
$(this).siblings().find('option[value="'+$(this).val()+'"]').remove();
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select class="sel">
<option>Seleccion AA</option>
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
</select>
<select class="sel">
<option>Seleccion BB</option>
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
</select>
<select class="sel">
<option>Seleccion CC</option>
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
</select>