I have this command (visibleSelect is jquery variable that holds multiple select list):
var selectedOption = visibleSelect.find('option[selected=true]');
From the watch window I can see that selectedOption.length
is 0, but visibleSelect.get(0)[1].selected
is true
.
Why selectedOption
doesn't containt the selected option? What is wrong?