Skip to content

xn/chosen_rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chosen jQuery Plugin for Rails 3.1 Asset Pipeline

This plugin makes select boxes look nice. It also provides a search bar to sift through the collection.

Install

# Add to Gemfile
gem 'chosen_rails'

# app/assets/javascripts/application.js
//= require jquery
//= require chosen

# app/assets/stylesheets/application.css
/*
*= require_self
*= require chosen
*/

Usage

<select title="Choose a country..." id='form_field' style="width:350px;" multiple class="chzn-select">
<script>$("#form_field").chosen()</script>

Demos and examples available here http://harvesthq.github.com/chosen/

Credits

The jQuery was written and made available by the following folks.

Chosen jQuery Plugin is hosted on Github at https://github.com/harvesthq/chosen

Built by Harvest http://www.getharvest.com/ Concept and development by Patrick Filler http://www.patrickfiller.com/ Design and CSS by Matthew Lettini http://matthewlettini.com/

About

Select Box jQuery Plugin for Rails 3.1 Asset Pipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%