Topic: dynamic select menu doesn't work for 'form_tag'

Hi Everyone,

I have tried  with the dynamic menu using "http://railscasts.com/episodes/88-dynamic-select-menus "  site.
i implemented and it was working fine for 'form_for' tag.
But i need to do the same function  with 'form_tag' as like as,
<% javascript 'dynamic_states' %>
<%form_tag do%>
<p>
  <label for="person_country_id">Country:</label>
  <%= collection_select :id, Country.find(:all), :id, :name, :prompt => "Select a Country" %>
</p>
<%end%>

child records doesn't changed to its corresponding parent when i use 'form_tag'....
i want to do with 'form_tag'
Please help me....

Last edited by willm (2010-01-22 05:52:33)

Re: dynamic select menu doesn't work for 'form_tag'

It works well.  If you prefer not the use JQuery, then this:

http://railsforum.com/viewtopic.php or http://www.rordevelopers.com

Which works equivalently well.  Hope that helps.

Re: dynamic select menu doesn't work for 'form_tag'

Thanks for your reply. i got 'Bad request. The link you followed is incorrect or outdated.' error when i clicked the first link.I dint get any information when  clicked the second link.I don know how to find the solution in the second link.Plz send me  the working version of the code if it is possible to paste here.