i have a script to send email via Ajax php code is working well but i also want to reset form after send email here is my jquery code
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function(){
$('#slider-submit').click(function(){
$('#success').text('Sending...');
$.post("send.php", $("#slider-form").serialize(), function(response) {
$('#success').html(response);
//$('#success').hide('slow');
});
return false;
$('#slider-submit')[0].reset();
});
});
</script>
please tell me how is it possible i also used reset method but not working at all