camerond/jquery-spotlite — Issue #6: Multiple selects and an element for results
Author: Spaceghost
Created: 2012-01-27 18:42:10+00:00
State: open

I'm working on a product and we've got a list of subscriptions which could be short or long, but it needs to be a multiple select.
The project is using jquery-spotlite, recommended by Shay, but I was curious as to what the requirements to use a multiple select form gracefully would be.

My question would be, do I need to implicitly provide an element to populate choices or results for a select?

I'd like to keep the view as clean as possible, and my current implementation uses a single css class on a select form for either single or multiple and handles the rest dynamically.

`` = form.select :subscription_ids, subscriptions, {}, class: "chosen", multiple: true``