清除表单input输入框内数据

清除表单input输入框内数据

1.

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

2.

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

 

转载于:https://www.cnblogs.com/pzx-java/p/7373471.html

posted @ 2020-05-28 09:45  海绵宝宝y  阅读(1543)  评论(0)    收藏  举报