Hi all,
It must be simple stuff. I am trying to put an input text area
- that submits when a user presses Enter without a submit button and - resets itself for a new input after Enter.
<% form_remote_tag (:url => {:action => 'my_action'}, :update => "area") do %> <%= text_area_tag 'my_input', " ", :rows =>2, :columns => 12, :onclick => "$(my_input).reset()" %> <% end %>
What am I doing wrong? Thanks.
Sy