Hi there, I have a drop down menu that looks like this: <select id="results_per_page" name="results_per_page"/> <option value="10">10</option> <option value="15">15</option> <option value="20">20</option> <option value="25">25</option> <option value="30">30</option> </select> I also have some links that need to take dynamically the value of the option selected in the above drop down menu, so that this value can be passed as a parameter to my rails application, when the user clicks a link. For example, my links look like these: <a href="/person/list/?country=foo&results_per_page=[variable that should change whenever a different option is selected]#results">Foo Country</a> <a href="/person/list/?area=bar&results_per_page=[variable that should change whenever a different option is selected]#results">Bar Area</a> <a href="/person/list/?language=en&results_per_page=[variable that should change whenever a different option is selected]#results">English</a> What I would like to achieve, is dynamically updating the value of the "results_per_page" parameter in those links, whenever the user selects a different option from the drop down menu. So, for example, when the page is first loaded, the value of the variable will be ''10'' and then when the user selects, say, option ''20'', this variable will be updated dynamically to ''20''. This way, when one of the above links will be clicked, the right parameter value will be passed to my rails app. I''ve tried using plain old JavaScript with ''onchange'' as well as Ajax with an rjs template, to no avail. Any ideas?? Many thanks in advance, dimitris -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---