ajax-chosen
ajax-chosen copied to clipboard
Added Prototype version
Support the Prototype javascript framework.
Please also be aware that we have released an ajax-chosen-rails gem for use with Rails 3.1 applications. This gem has been released with the prototype version included.
I'm a bit confused by this. Where is the Chosen class that is being extended by ajaxChosen? Is that a part of the ajax-chosen-rails gem?
Hi,
The Chosen class is just the original chosen javascript library. In the prototype version of chosen, you call
new Chosen(element);
So the prototype version of ajaxChosen wraps the Chosen object, but binds to the 'keyup' event on the input after chosen is initialized. You call it like this:
new ajaxChosen(element);
I'll update the README with this info too, sorry, I should have added that to the pull request
@meltingice What is the status of this PR? Can this be merged? Seems like a great addition.
Too many bugs to use