Passing text_field values to ajx on rails
I use
<%= text_field 'person', 'one',:id => 'test', :onchange=>remote_function(:url=>{:action=>"update"}, :update=>"test") %>
<div id="test"></div>
Now I just want to send the text_field value with: action ie :url=>{:action=>"update(value_of_text_field_entered"}
Don't want to use params [: person] [: one].
Any suggestions? or how can I use <% = observe_field%> to send a value with an action?
+2
a source to share
3 answers