matsko/MooSelect — Issue #5: Selected  property onPopulate
Author: fuvizzo
Created: 2012-03-01 17:37:50+00:00
State: open

Hi,

i'm experiencing some problems in get the mooSelect (multiselect mode) options selected on Populate event.
Even though my select tag has got many options with selected="selected" it seems like these are not set correctly by the method isOptionSelected.
I fixed this problem by commenting out some code lines like this:

isOptionSelected : function(option) {
if(typeOf(option) == 'element') {
// if(Browser.ie && Browser.version < 9) {
// return !! option.selected;
// }
// return option.getAttribute('selected') != null;
// }
// else {
return option.selected;
}
},

but i do think is not the right way at all... i'm not so mastered in javascript!!!
Am I missing something??
By the way u guys are great and this tool is simply amazing!
Thanx
Fulvio