title: ajaxform jQuery plugin reset form after sending request
body: <p>Before i begin I believe this is not a dublicate at first.</p>
  
  <p>Here's my problem:</p>
  
  <p>I have a chatroom php script that i use ajaxForm jQuery plugin in order to send new messages without reloading the whole page.</p>
  
  <p>The fact is that posting takes about 1-2 secs with times:
  e.g</p>
  
  <p>Blocking:6ms</p>
  
  <p>Sending:1ms</p>
  
  <p>Waiting:1.15 sec</p>
  
  <p>Recieving 1ms</p>
  
  <pre><code>$('#myform').ajaxForm(function() {
      //clear form after this
      $('#myform').clearForm();
  });
  </code></pre>
  
  <p>The form is cleared after te recieving time,meaning it takes about 1.20sec to clear each message i send... and it seems like the chat lags for a bit.</p>
  
  <p>I am trying to figure out a way to clear the form after the Sending part,without callback or something.</p>