As you might guess I’m building a small chat system, and I would like that when the user clicks enter the message would be sent and the text area cleared.
I’m using this jquery:
jQuery('#my-form')[0].reset();
and it reloads the page which looks really noob.
any ideas?
Should clear a textbox