Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap.js - how to automatically display a modal window?

I like the Bootstrap library by Twitter and I would like to try to use into it in my simple page. I need there after loading the page automatically display the modal window. Could anyone give me a tip, how is possible to do it?

like image 424
user984621 Avatar asked Jan 28 '12 12:01

user984621


1 Answers

well that shouldn't be too hard... do something like this:

jQuery(document).ready(function($) {
    $('#my-modal').modal(options)
});
like image 78
giorgio Avatar answered Nov 15 '22 00:11

giorgio