title: clear form data after submit jquery
body: <p>How do I clear a form data once the submit succeed in jquery?</p>
  
  <pre><code>   $(document).ready(function () {
         $('#submit').click(function () {
             $.ajax({
                type: "POST",
                url: 'final.php',
                data: "user=" + $('#user').val() + "&amp;comment=" + $('#comment').val(),
                success: function (data) {
  
                    $('#status').html(data);
                 }
            });
         });
     });
  </code></pre>
  
  <p>HTML... I need to clear the form data once the form is submitted....Any help would be appreciated.</p>
  
  <pre><code>&lt;input type="text" name="user" id="user"&gt;
  &lt;input type="text" name="comment" id="comment"&gt;
  &lt;input name="submit"  type="submit" id="submit"&gt;
  &lt;div id="status"&gt;
  </code></pre>