Quantcast
Channel: jQuery remove options from select - Stack Overflow
Viewing all articles
Browse latest Browse all 14

Answer by Andrew Hare for jQuery remove options from select

$
0
0

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();

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>