Skip to content

Instantly share code, notes, and snippets.

@danmcclain
Created February 16, 2012 23:06
Show Gist options
  • Select an option

  • Save danmcclain/1848615 to your computer and use it in GitHub Desktop.

Select an option

Save danmcclain/1848615 to your computer and use it in GitHub Desktop.
:javascript
$(function(){
$("#years").selectorize(Openbay.Vehicles)
});
%h2 {:id => 'currentSelection'}
.vehicle-picker
#years{:data => {:next => "makes", :order => "reverse"}}
%h2.year
%a Year
%ul
#makes{:data => {:next => "models"}}
%h2.make
%a Make
%ul
#models{:data => {:next => "trims"}}
%h2.model
%a Model
%ul
#trims{:data => {:field => "vehicle_id"}}
%h2.trim
%a Trim
%ul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment