I would clear the fields using the server confirmation response, and not an extra click.
$("#submit").submit(function() { var submit = $(this).serialize(); $.post('serverside.php', submit, function(data){ if(data == "complete"){
EDIT
If you want to reset using a button, I would do
$('#clearform').on('click', function () { $('#submit').trigger("reset"); });
source share