Better management of selected values when the select element has selected options.


Fix issue #144