search for: trimmed_numb

Displaying 1 result from an estimated 1 matches for "trimmed_numb".

Did you mean: trimmed_number
2007 May 21
0
options_for_select and setting css class values
...oogling or via searching this board), so here goes... i''m using erb to make a select box with several hundred <option> values it looks something like this: <%= select_tag ''controls'', options_for_select(@controls.map {|cpd| ["#{cpd.compound_name}.....#{cpd.trimmed_number}"]}), {:class => ''superwide'', :size => 20} %> the above code works great...except for 1 thing. i''d like to cycle the color of every other <option> tag using css. obviously, i''d like to use the ''cycle'' function, but how/wh...