Closing Bootstrap modal onclick

北城余情 提交于 2019-12-03 06:48:48

Close the modal box using javascript

$('#product-options').modal('hide');

If the button tag is inside the div element who contains the modal, you can do something like:

<button class="btn btn-default" data-dismiss="modal" aria-label="Close">Cancel</button>

You can hide the modal and popup the window to review the carts in validateShipping() function itself.

function validateShipping(){
...
...
$('#product-options').modal('hide');
//pop the window to select items
}
afa 7heaven

Close the modal with universal $().hide() method:

$('#product-options').hide();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!