In mootools 1.2, getting selected options in a multi select is easy using getSelected:
// code 1
$('my_select').getSelected().each(function(opt) {
// stuff
});
Is there an equivalent of that in mootools 1.1 or do I have to use getChildren() and check whether it has been selected?
What I have at the moment:
// code 2
// get all options
$('my_select').getChildren().each(function(g) {
// if option is selected
if(g.selected == true)
{
// do some stuff
}
});