$('#mySelectBox option').each(function() {
if ($(this).isChecked())
alert('this option is selected');
else
alert('this is not');
});
Apparentemente, il isCheckednon funziona. Quindi la mia domanda è qual è il modo corretto per farlo? Grazie.
this.selected) che dovresti bypassare usando jQuery ($(this).prop("selected")) ma funzioneranno entrambi per te.