I am trying to clear my form when the submit button is clicked. It opens a page in a new window, and the value typed in the input field is still showing.
function clearform (formid){
$('#'+formid).reset()
}
And the HTML:
<form id="email-subscribe" action="http://feedburner.google.com/fb/a/mailverify?uri=MYURI&loc=en_US" method="post" target="_blank">
<input id="email" name="email" type="text" tabindex="1" placeholder="Enter your email" />
<button type="submit" onClick="clearform('email-subscribe');" >Submit</button>
</form>
What am I missing?