【发布时间】:2021-05-22 02:23:05
【问题描述】:
标题描述了问题,我创建了一个fiddle 来显示问题。
$("input[name='delete']").click(function(e) {
e.preventDefault();
bootbox.confirm("Are you sure?", function(result) {
if (result) {
// form validation
if (document.getElementById("student_delete_form").reportValidity()) {
$('#student_delete_form').submit();
}
}
});
});
预期结果: chrome 和 firefox 上的验证错误消息
实际结果:验证错误信息只出现在firefox上而不是chrome上
【问题讨论】:
标签: javascript jquery google-chrome firefox bootbox