Using AJAX to pass form values to a PHP page. Once the values are passed, i'm clearing the values of INPUT fields in the form. It works fine, but when i clear the input:date value the page gets Refreshed !
$('#form1').submit(function(){
var formdata = $(this).serialize();
$.ajax({
type:'POST',
url:'certification.php',
data:formdata
});
$(this).find('input:text').val('');
$(this).find('input:file').val('');
$(this).find('input:date').val(''); **On adding this line page gets Refreshed.**
return false;
});