title: jQuery delete text on input after submit
body: <p>I putted a jQuery script on my chat so the message sends without page refreshing.</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      $(document).ready(function(){
              $("#msgsending").validate({
                 type: "POST",
                      debug: false,
  
                      submitHandler: function(form) {
                              // do other stuff for a valid form
                              $.post('index.php', $("#msgsending").serialize(), function(data) {
  
                              });
                      }
              });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>And form</p>
  
  <pre><code> &lt;form id="msgsending" name="form" method="post" action="" &gt; 
  &lt;input name="message" id="message" type="text" maxlength="350" /&gt;
  
  &lt;input name="message" id="message" type="text" maxlength="350" /&gt;
  
  &lt;input name="submit" type="submit" value="Send!" /&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>The code works perfectly. (index is the script that insert the message + username in the database)</p>
  
  <p>But now I have a issue.</p>
  
  <p>The text don't delete on the message input after submitting.
  I've google'd alot of pages and all the codes didn't work. (Somes worked but message isn't sending)</p>
  
  <p>What do you recommand me?</p>