Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Add shift-click selection to a list of checkboxes.
Ruby CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
spec/javascripts Refactor shift event in spec
vendor/assets/javascripts Prevent selecting text when shift-clicking an LI
Gemfile.lock Update dependencies Add simple README
eligo-rails.gemspec Release 0.0.4


Add simple shift-click multi-select to a list of checkboxes.

Build Status


Eligo is packaged as a gem that can be dropped into a Rails 3.1 app thanks to the asset pipeline. Add the eligo-rails gem to your Gemfile:

gem 'eligo-rails'

The JavaScript file shift_clickable is now available to require and use.

    <input type="checkbox">
    Arthur Dent
    <input type="checkbox">
    Ford Prefect
    <input type="checkbox">
    Tricia McMillan
    <input type="checkbox">
    Zaphod Beeblebrox
#= require shift_clickable

$ -> $('ul').shiftClickable()

Clicking on Arthur and then shift-clicking on Zaphod will also select both Ford and Tricia.

Something went wrong with that request. Please try again.