I have a ruby on rails application.I have 2 drop down boxes.I have to populate the second drop down box based on the selection from the first one.
The html code is
-Releases = Release.all
%table.grid.full
%tr
%td.grid.full_panels{:style => "width: 40%"}
Release:
%td.grid.full_panels{:style => "width: 40%"}
= select_tag "releases",options_from_collection_for_select(releases,"id","name",params[:releases]),:include_blank=>true
%td.grid.full_panels{:style => "width: 40%"}
Cycle:
%td.grid.full_panels{:style => "width: 40%"}
Now i need the cycles drop down to be populated from releases.
Please help me with the jquery for this.