jquery表单重置另一种方法

页面中按钮为<a>标签时,点击取消按钮,表单内容重置,需要给form表单id="form":

<a class="demo_one1" onclick="shut()">Cancel</a> 

function shut(){
$("#form").get(0).reset();
}

原文地址:https://www.cnblogs.com/xlz307/p/4219973.html