I want to give suggestions(basically showing a hidden div) when somebody
clicks on the text box to write(I assumed this is what on:focus meant).
<%= observe_field :test_field, :function => “alert(‘Element on focus’)”,
:on => :focus %>
But surpisingly, alert is called when the value is changed and focus
moves onto something else…
Can somebody suggest? how to get this working?