fastadmin表单取消data-rule:required验证之后,仍然无效,如何解决

$('#selected_signing_time').attr('data-rule','none');                  //取消验证
$('#selected_signing_time').removeAttr('aria-invalid');                //移除多余attr
$('#selected_signing_time').parents('.form-group').removeClass('has-error');  //移除class
$('#selected_signing_time').parents('.form-group').find('.msg-box').remove();  //移除报错dom

 

posted @ 2024-08-15 12:08  温柔的风  阅读(23)  评论(0编辑  收藏  举报