Skip to main content
2 of 4
edited tags
meder omuraliev
  • 187.2k
  • 76
  • 401
  • 443

jQuery remove options from select

I have a page with 5 select's 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?

Thanks, Chris

user135498
  • 6.1k
  • 8
  • 32
  • 29