forms javascript jquery

Clear form after submission with jQuery

What’s the easiest way to clear this form after refresh. The way I have tried will clear the form but not submit to the database. Could someone else explain to me the best way to do this.

<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
debug: false,
rules: {
name: "required",
email: {
required: true,
email: true
messages: {
name: "Please let us know who you are.",
email: "A valid email will help us get in touch with you.",
submitHandler: function(form) {
// do other stuff for a valid form
$.post('newsletter.php', $("#newsletterform").serialize(), function(data) {
<div id="content">
<div id="newsletter-signup">
<h1>Sign up for News, Updates, and Offers!</h1>
<form id="newsletterform" action="" method="post">
<label for="name">Name:</label>
<input type="text" name="name" />
<label for="email">Email:</label>
<input type="text" name="email" />
<div id="results"><div>
<input type="submit" value="submit" name="signup" onclick="" />