SelectList 0.4 has just been released. This is a major update which introduces a different (better) approach to how the original multiple selection element is handled and how the plugin stores the selected options.
In the previous versions, the multiple select element was transformed into a single selection drop-down list by stripping off its multiple attribute, so there was no multiple select in the document anymore, and the selected options had to be stored in a series of type="hidden" input elements. However, this turned out to cause significant problems with obtaining the selected values with the core jQuery .val() method, and with serialization through .serialize().
I modified the code so that the original multiple selection element stays hidden in the document and continues to serve as a container for the selected options. This way the .val() and .serialize() methods are unaffected and can be used in the conventional manner.
This solution also has a few drawbacks (for example, it makes validation a bit more complicated), but it’s much easier to work around them than dealing with the quirks of the previous method.
The new version works with jQuery 1.3.2 up to 1.4.4. Oh, and the refactoring also happened to have made it smaller than the previous version.
Michal,
Just checked out your examples page, and none of them work in the new FireFox beta 4.0b11 – http://www.mozilla.com/en-US/firefox/beta/.
I don’t know whether it’s your code or theirs that needs tweaking…
Good luck!
Chris
@Chris: I’m actually aware of the problem, but it seems to be caused by a browser bug. I have a workaround, but I’ll wait and see if they fix the problem in a release candidate version. Anyway, thanks for your feedback
SelectList do not work with Firefox 4.0… Help!
Thanks… It’s a great plug-in.
@Aleksa106: This was fixed in the latest release.
Michal thanks… Спасибо!!!