Q:

Clear form input fields after submit in jquery

I have trying to submit a form using jquery. Form is submitted correctly but it do not clear the form after submission.
here is my jquery code
<script type="text/javascript">
    $(document).ready(function(){   
        $("#save").click(function(){    
            $("#myform").submit();
            $("#myform")[0].reset();        
         });    

    });             
</script>

here is my form
<form action="http://localhost/newsletter/index.php/email/send" method="post" accept-charset="utf-8" id="myform" name="myforms">        
    <p>
        <label for="name">Email Address </label>
        <input type="text" name="email" id="email" value="<?php echo set_value('email');?>">

        <input type="button" value="Go" id="save"></p>

</form>

i just want to clear form after submit but it can't reset field, data is submitted and still remain in the field..Any suggestion please??

A:

$("form").trigger("reset");

This will work for jQuery for sure.

