Hello everyone!

I would like to clear my textarea when the user click on the "Submit"
button.
Ths thing is I'm using a submit_to_remote button. I heard that's
impossible to add an option onclick to clear my textarea.

<%= submit_to_remote 'comment', 'Submit', ajax_options(:url => {
:controller => '/ticket_comments', :action => :create }, :update =>
{:success => "comment_list"}, :validation => true) %>

Do you have an idea?

Thank you!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to