$('#mySelectBox option').each(function() {
if ($(this).isChecked())
alert('this option is selected');
else
alert('this is not');
});
Anscheinend isCheckedfunktioniert das nicht. Meine Frage ist also, wie man das richtig macht. Vielen Dank.
this.selected) , dass Sie sollten Bypass jQuery ($(this).prop("selected")) , aber sie werden für Sie beide arbeiten.