remove options from select jquery code example

Example 1: remove all options from select jquery

$('#mySelect')
    .empty()

Example 2: jquery remove option from select by value

$("#FIELDID option[value='X']").remove();

Example 3: jquery remove option from dropdown

<script>
$( ".dropdown" ).change(function() {
  dropdownval = $( ".dropdown" ).val();
  $(".dropdown option[value='dropdownval']").remove();
});
</script>

Example 4: select remove option jquery

$('.ct option').each(function() {
    if ( $(this).val() == 'X' ) {
        $(this).remove();
    }
});