Displaying 1 result from an estimated 1 matches for "get_automodels".
2009 Aug 11
5
Dynamic drop-downs in a form_for using AJAX remote_function - Help
...|f| %>
2. <%= f.error_messages %>
3. <p>
4. <%= f.label :make %><br />
5. <%= f.collection_select :make, @automakes, :make, :make,
{:prompt => "-Select a Make-"}, {:onChange => remote_function(:url =>
{:action => ''get_automodels''}, :with => "''make='' + this.value")} %>
6. </p>
7. <p>
8. <%= f.label "Model:" %><br/>
9. <div id=''automodelsdiv''>
10. <%= f.collection_select :model,
@automodels,...