我很好地提交联系表。一切工作正常,但是当我提交从我想清除所有字段的详细信息。输入不刷新。当我提交联系表格我想从字段中清除?
我的javascript
$(document).ready(function(){
$('#buttonme').click(function(){
$.post("send.php", $("#myform").serialize(), function(response) {
$('#contactstatus').html(response);
//$('#success').hide('slow');
});
return false;
});
});
我如何可以刷新输入什么,我必须在MyScript可添加
'document.getElementById('myform')。reset();' – adeneo