jquery remove selected option from dropdown code example
Example 1: jquery remove option from dropdown
<script>
$( ".dropdown" ).change(function() {
dropdownval = $( ".dropdown" ).val();
$(".dropdown option[value='dropdownval']").remove();
});
</script>
Example 2: select remove option jquery
$('.ct option').each(function() {
if ( $(this).val() == 'X' ) {
$(this).remove();
}
});