Try this:
$(".ct option[value="X"]").each(function() {
$(this).remove();
});
Or to be more terse, this will work just as well:
$(".ct option[value="X"]").remove();
More Related Contents:
- What is the best way to add options to a select from a JavaScript object with jQuery?
- Adding options to a using jQuery?
- Change the selected value of a drop-down list with jQuery
- How to populate a cascading Dropdown with JQuery
- jQuery get specific option tag text
- How do you remove all the options of a select box and then add one option and select it with jQuery?
- Hide select option in IE using jQuery
- Removing an item from a select box
- Check if option is selected with jQuery, if not select a default
- How to use jQuery to select a dropdown option?
- What is the most efficient way to sort an Html Select’s Options by value, while preserving the currently selected item?
- How to keep cascade dropdownlist selected items after form submit?
- Creating a select box with a search option
- set option “selected” attribute from dynamic created option
- Close a SELECT dropdown list programmatically with Javascript/jQuery
- How to hide optgroup/option elements?
- Can you have multiple lines in an element?
- Change from (+) symbol to (-) after click (function(){
- How can I create an Asynchronous function in Javascript?
- HTML5 Canvas toDataURL returns blank
- How to reload/refresh jQuery dataTable?
- Loading scripts after page load?
- comparing 2 strings alphabetically for sorting purposes
- How can I remove all CSS classes using jQuery/JavaScript?
- jQuery click function only works on first element
- How to detect a mobile device using jQuery
- AngularJS : ng-model binding not updating when changed with jQuery
- How do I get first element rather than using [0] in jQuery?
- How to change tabs programmatically in jquery-ui 1.9?
- Convert string to sentence case in javascript