Call back function in modal of bootstrap3

后端 未结 5 1143
醉话见心
醉话见心 2020-12-31 01:12

Im a little bit confuse about firing a call back function in javascript modal of bootstrap3. In normal jquery.post you can do it like,

$.post(\         


        
5条回答
  •  情书的邮戳
    2020-12-31 01:28

    For Bootstrap 3, the events are now namespaced, so the show event for the modal would be show.bs.modal...

    $('#myModal').on('show.bs.modal', function (e) {
        alert('modal show');
    });
    

    Demo: http://bootply.com/90952

提交回复
热议问题