Auto populate a text field based on another text field
- by Syed Aslam
I am trying to auto-populate a text field based on the value of another input field. Currently trying to do this using observe_field helper like this:
<%= observe_field(
:account_name,
:function => "alert('Name changed!')",
:on => 'keyup'
) %>
<% form_for(@account, :html => { :id => 'theform' })…