views:

82

answers:

1

Houw would i do the same thing like this for radio buttons in jquery?

$("select option:not(:selected)").removeClass("takethis");
+7  A: 
$("input:radio, input:checkbox").not(":checked").removeClass('takethis');
Paolo Bergantino
One note, the jQuery docs recommend using "input:radio" and "input:checkbox" instead of ":radio" or ":checkbox" for efficiency.
Chad Birch
Duly noted and fixed.
Paolo Bergantino