What I want to do is have a user select an option from a dropdown, and have another dropdown populate after the first selection. My code is below:
<p><label for="league">League</label> | <label for="team">Team</label><br/>
<%= select_tag('blogs', '<option>League1</option>,<option>League2</option>,<option>League3</option>,<option>League4</option>') %> |
<%= collection_select(:teams, :id, @teams, :id, :city) %></p>
I'm basically looking for a Rails equivalent of PostBack in ASP. Any help would be great.
Thanks!