2 ms·
You're right, I could write it so the only dependency is jQuery. But using Backbone makes the implementation much cleaner and more robust. Especially consideri
by Swizec 15y ago
You're right, I could write it so the only dependency is jQuery. But using Backbone makes the implementation much cleaner and more robust.
Especially considering there are three data representations that all have to be in sync:
- the actual multiselect
- the visible checkboxes
- the internal state
I thought about using pure jQuery, but my head soon started spinning and I decided to do it right.
- gillesmaes 15y agoI hope you don't mind, made a quick jQuery only version. http://gillesmaes.github.com/Multibox/ http://gillesmaes.github.com/Multibox/