I have a ruby on rails application.I am using jquery to populate a drop down list box.
I have to get the values from the sql query.
i.e selected_release=Release.find(id)
cycles=selected_release.cycles.
The second drop down is populated from cycles.
I have a ruby on rails application.I am using jquery to populate a drop
Share
I wouldn’t create a sql like query within jQuery if I was you.
How about creating a onchange event on the first dropdown, which wil post the Id of the Release to an action, which renders the cycles dropdown?
see this link for an example