qdkfyym

清除表单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

分类:

技术点:

相关文章: