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?