emposha / FCBKcomplete

Jquery facebook like(fancy) multi-select
http://www.emposha.com
383 stars 115 forks source link

Small bug on load with select value #73

Closed dragonofmercy closed 12 years ago

dragonofmercy commented 12 years ago

Hello I found a little bug in your code at the line 68 replace this if (option.hasClass("selected")) { by that if (option.attr("selected")) {

If this line is not replaced the value cannot be set by default from the select.

Regards.

emposha commented 12 years ago

Hi @zellerda, it`s done in this way because of some ie buggy behavior (if I remember right ie always add selected attribute to first element). So I decided that it is better to add a class to option element, than to solve ie bugs or implements some of workaround.