Add ability to work with none multiple select

When using this code on none multiple select, first item was selected by default even if it doesn't really.
So when none multiple select is used, i propose to change selected test to "$elm.attr('selected') == 'selected'".

Regards