I'm using twitter bootstrap modal dialog.
And it works fine while only opening it with
<a class="btn" data-controls-modal="my-modal" >Launch Modal</a>
But when I try something like
$('#close_popup').click(function(){
$('#rules').modal('toggle');
});
I get a javascript error:
bootstrap modal is not a function
Moreover. As far a I understand link with .close
must close the window and it doesn't.
What do I do wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…