I have a form with a textarea and a submit button generated with the
AJAX helper. When clicking on the submit button I want to send the
request to the server, update the corresponding HTML element *and*
clear the textarea.
The onClick event is already defined in the helper method as "return
false;", what is the best way to reset the form?
This is the code that generates the ajaxified submit button:
$ajax->submit('Add', array("condition"=>"checkLogin()",
"class"=>"button","url"=>"/projects/$urlname/$pid/comment",
"update"=>"project_comment_list") )
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---