清除表单input输入框内数据

清除表单input输入框内数据

1.

$(':input','#addVoucherType')   //'#addVoucherType'表单id
         .not(':button')
         .val('')
         .removeAttr('checked')
         .removeAttr('selected');

2.

$("#addBillTypeForm")[0].reset();//‘#addBillTypeForm’表单id

 

posted @ 2017-08-16 15:11  丨逸仙  阅读(1089)  评论(0编辑  收藏  举报