harvesthq/chosen — pull request #380 by danielstocks (2011-12-05 15:49:23+00:00)
Title: Initialize plugin with a JSON data source

I thought perhaps someone might be interested in my little hack:

Chosen can be built from an array of JavaScript objects. It uses a regular input[type=text] for storing the selected value.

I only implemented this in the jQuery version. I can't be assed to do it for prototype just yet, if someone else want's do a port, please do.

It supports nested data for opt-groups aswell as disabled, and pre-selected data values.

I also added documentation in example.jquery.html how it can be used.