Jquery Insert HTML
Posted
by danit
on Stack Overflow
See other posts from Stack Overflow
or by danit
Published on 2010-01-02T11:27:09Z
Indexed on
2010/04/13
0:02 UTC
Read the original article
Hit count: 368
jQuery
I'm using: http://jquery.malsup.com/form/#getting-started to submit my form, Ajax styleee.
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?
$(document).ready(function() {
$('#pollform').ajaxForm(function() {
$('#pollform').hide();
});
});
© Stack Overflow or respective owner