表单重置时,重置 hidden类型 input 值

This commit is contained in:
Yifu 2020-09-08 15:12:30 +08:00 committed by Gitee
parent 510feabe4b
commit 345c652daf
1 changed files with 1 additions and 0 deletions

View File

@ -610,6 +610,7 @@ var table = {
table.set(tableId);
var currentId = $.common.isEmpty(formId) ? $('form').attr('id') : formId;
$("#" + currentId)[0].reset();
$("#" + currentId + " input[type='hidden']").val("");
if (table.options.type == table_type.bootstrapTable) {
if($.common.isEmpty(tableId)){
$("#" + table.options.id).bootstrapTable('refresh');