Skip to main content
edited tags
Link
Kara
  • 6.2k
  • 16
  • 54
  • 58
deleted 18 characters in body
Source Link
Bill the Lizard
  • 407.3k
  • 213
  • 579
  • 892

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

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

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?

edited tags
Link
meder omuraliev
  • 187.2k
  • 76
  • 401
  • 443
Source Link
user135498
  • 6.1k
  • 8
  • 32
  • 29
Loading