1$('.ct option').each(function() {
2 if ( $(this).val() == 'X' ) {
3 $(this).remove();
4 }
5});
6
1<script>
2$( ".dropdown" ).change(function() {
3 dropdownval = $( ".dropdown" ).val();
4 $(".dropdown option[value='dropdownval']").remove();
5});
6</script>