[英]How to hide modal after submit button successfully clicked using Ajax?
I am facing issues is modal dismiss after submit button is successfully called using ajax call. 我面临的问题是,使用ajax调用成功调用了提交按钮后,模态关闭。
$('#myModal').detach(); $('#myModal').remove(); $('#myModal').close();
modal dismiss and not able to click anywhere 模态解散并且无法单击任何位置
According to the official bootstrap documentation at: 根据官方的引导文档,位于:
https://getbootstrap.com/docs/4.1/components/modal/#methods https://getbootstrap.com/docs/4.1/components/modal/#methods
Please try: 请试试:
$('#myModal').modal('hide')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.