Houw würde ich das gleiche für Radiobuttons in Jquery tun?Klasse aus Radiobutton entfernen
$("select option:not(:selected)").removeClass("takethis");
Houw würde ich das gleiche für Radiobuttons in Jquery tun?Klasse aus Radiobutton entfernen
$("select option:not(:selected)").removeClass("takethis");
$("input:radio, input:checkbox").not(":checked").removeClass('takethis');
Ein Hinweis, die jQuery-Dokumente empfehlen die Verwendung von "input: radio" und "input: checkbox" anstelle von ": radio" oder ": checkbox" für die Effizienz. –
Ordentlich notiert und behoben. –
antwortete ich schon dazu in http://stackoverflow.com/questions/662373/remove-a-class-select-option-is-not-selected/662443, für Radios als auch innen die pseudo-akzeptierte Antwort. – Seb