I'm trying to figure out how to use RJS to swap between two fields... i know how to replace the values but I can't seem to figure out how to read it.
Is it not possible to read values thru RJS? Only to replace?
<%= link_to_function "Swap" do |page|
#to_value = page[:currency_to].value
page[:currency_from].value = to_value
page[:currency_to].value = "test"
end %>