I'm hoping to do chained select boxes with this jquery plugin
http://www.appelsiini.net/2010/jquery-chained-selects
It works by matching the option class attribute from the chained
select input with the option value attribute from the original select
input.
Abridged example from the site -
<select id="mark">
<option value="bmw">BMW</option>
<option value="audi">Audi</option>
</select>
<select id="series">
<option value="series-3" class="bmw">3 series</option>
<option value="a3" class="audi">A3</option>
<option value="a4" class="audi">A4</option>
</select>
So I was wondering if it is there any simple ruby magic that could
pass a custom class attribute into a :collection?
Thanks!