I want to close bootstrap modal box conditionally. If I use
$('#modal').modal('hide');
this, some thing goes wrong with my code. And If I use data-dismiss="modal"
in the HTML template, modal dismiss action performs before my actual functionality should be perform on button click.
So, there is any other way to close bootstrap modal or any idea to use data-dismiss="modal"
at run time?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…