每次弹出输入内容后隐藏再次弹出时内容为空

代码:

  

$('#operateModal').on('hidden.bs.modal', function () {
$(this).find("input,textarea,select").val('').end()
.find("input[type=checkbox], input[type=radio]").prop("checked", "").end();
$('#operate-form').bootstrapValidator('resetForm', true);
});

效果:

清空模态窗口方法清空模态窗口方法

相关文章:

  • 2021-10-03
  • 2022-12-23
  • 2021-06-09
  • 2021-04-13
猜你喜欢
  • 2021-07-29
  • 2021-12-04
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案