Jquery Insert HTML
<p>I'm using: <a href="http://jquery.malsup.com/form/#getting-started" rel="nofollow">http://jquery.malsup.com/form/#getting-started</a> to submit my form, Ajax styleee.</p>

<p>However the form submits correctly and the data is sent however the fields on the form continue to have data in them. How can I clear them on submit? Hiding the form and displaying thank you would also be acceptable?</p>

<pre><code>$(document).ready(function() { 
    $('#pollform').ajaxForm(function() { 
      $('#pollform').hide();
    }); 
}); 
</code></pre>
