我在我的标记根中有两个模态,虽然文档说一次不使用多个模式,但我有一个从用户角度来看的场景,我认为它最有意义2个模态。问题在于,一旦第二个模态打开,它将忽略第一个和第二个模式。有没有什么办法可以用data-dismiss="modal"
来定位一个特定的模态或id,因为我认为这是解除模态的逻辑是?Bootstrap Modal Close
0
A
回答
1
$('#myModal').modal('hide');
是关闭/隐藏id为myModal的模式的正确语法(您可以在Bootstrap文档页面上测试此功能)。
1
我使用JQuery //引导关闭它们喜欢:
$('#modal1').modal('hide');
编辑:CMedina也较快;)
相关问题
- 1. Rails Bootstrap close modal
- 2. Bootstrap close modal not working
- 3. Close angular modal
- 4. Bootstrap Modal切片
- 5. Bootstrap Modal Not Firing
- 6. Laravel Bootstrap-Modal TokenMismatch
- 7. Bootstrap Modal Overlay另一个Modal
- 8. Bootstrap Modal Focus not working
- 9. Bootstrap Modal with Chart.js linechart
- 10. Bootstrap PopUp Modal Reference Array
- 11. Onclick day close bootstrap datepicker
- 12. Bootstrap class =“close”关闭所有模态
- 13. AngularJS UI-Bootstrap Modal
- 14. Bootstrap 3 modal change
- 15. jQuery&twitter Bootstrap Modal
- 16. bootstrap modal footer css
- 17. bootstrap 3 modal,cropperjs
- 18. Twitter Bootstrap Closing Modal
- 19. Bootstrap Circle Modal
- 20. Bootstrap 3.0 Modal
- 21. Twitter Bootstrap Modal - IsShown
- 22. Scroll Bootstrap 3 modal
- 23. XPages Bootstrap Modal
- 24. Twitter Bootstrap Modal Fade
- 25. Twitter Bootstrap Modal
- 26. Angular 2 Bootstrap Modal
- 27. Rails - bootstrap modal submit
- 28. Bootstrap Modal with Angular 2
- 29. Toogle Ng-Bootstrap Modal in Angular 4
- 30. Bootstrap typeahead not Bootstrap Modal内工作
https://github.com/twbs/bootstrap/issues/3233 –
http://stackoverflow.com/questions/16972809/close-bootstrap-modal-without-using-hide-and-data-dismiss –