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

jQuery remove options from select

$
0
0

I have a page with 5 selects that all have a class name 'ct'. I need to remove the option with a value of 'X' from each select while running an onclick event. My code is:

$(".ct").each(function() {    $(this).find('X').remove();   });

Where am I going wrong?


Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images

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