Can't clear the input value after form is submited
===

Ok, I've tried every suggestion that I could find, but those values are still there after submitting form and fadeOut. If anyone has a suggestion...


    <script type="text/javascript">
    
    $(document).ready(function() { 
        $('#form1').ajaxForm( { beforeSubmit: validate } ); 
    
    function validate(formData, jqForm, options) { 
        var name = $('input[name=name]').fieldValue(); 
        var email = $('input[name=email]').fieldValue(); 
        var message = $('textarea[name=message]').fieldValue(); 
     
    if (!name[0]) { 
    alert('Please enter a value for name'); 
    return false; 
    }  
    if (!email[0]) { 
    alert('Please enter a value for email'); 
    return false; 
    }  
    if (!message[0]) { 
    alert('Please enter a value for message'); 
    return false; 
    }
    }
    
    $("#form1").ajaxForm(function(){
            $("#formplic").fadeOut(1000, function() {
                 $(this).html("<img src='images/postauto2.png'/>").fadeIn(2000);
            });
        });
    });
    </script> 

