Bootstrap modal in joomla 3.1

fefe picture fefe · Aug 12, 2013 · Viewed 8.7k times · Source

How to use Bootstrap modal in Joomla 3.1 ? I have Bootstrap loaded and when I try to initialise

 $('#confirmDelete').modal();

my modal window I get $(...).modal is not a function

Answer

Joe Conlin picture Joe Conlin · Aug 13, 2013

Easiest way I have found is to use the data attribute, data-toggle="modal". An example would be:

<a href="#my-modal" data-toggle="modal" class="btn">Launch modal</a>