Jquery UI modal (popup box) control size and hide by default

Posted by user782104 on Stack Overflow See other posts from Stack Overflow or by user782104
Published on 2012-04-15T04:20:48Z Indexed on 2012/04/15 5:28 UTC
Read the original article Hit count: 159

jsfddle page

I am currently using bootstrap modal , which is a jquery plugin to create a popup box, here is its documentation, only few lines, so it takes a minute to read only

I encountered problem in 3 aspect :

How can i define the size of the modal(pop up box)? I tried:

<div class="modal" id="myModal" style="width:800px;height:900px;">

but it does not display correctly.

And how can i hide the modal by default, it currently display when i enter the page

I tried the method in doucment

    $(document).ready(function() {
$('#myModal').modal("hide");
} );

but not working as well.

Thank you

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery