Retrieving data from a remote_function in a SELECT list

P

pjazzlg

I have the following code which successfully calls the correct method
in my Controller. One huge question.... how do I retrieve the value of
the selection once the method in the controller has been called?


<select name="selector" id="selector"
onchange="<%= remote_function:)update => 'flist',
:url => { :action => 'update_list'}) %>">
<% for x in @areas %>

<option value="<%= x.id %>" name="= x.area_name %> ">
<%= x.area_name %>
</option>
<% end %>

Many Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,296
Latest member
HeikeHolli

Latest Threads

Top