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?
Try
var selectedOption = visibleSelect.find('option:selected');
use var selectedOption = visibleSelect.find('option:selected');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With