<script type="text/javascript"> $(document).ready(function(){ $('#send_message').bind('click',function(){ setTimeout("$('textarea').val('')",1000); }); }); </script>