Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery, Bootstrap help ? Re: jQuery, Bootstrap help ?

#102196
seanroberts
Member

That is because you are not hiding that modal window with CSS first.

You can do this with CSS or JavaScript

CSS:


#myModal {
display:none;
}

JavaScript


//inside your $(document).ready() function
$("#myModal").hide();

It is better practice and inline with the ideal MVC model to keep your style (including hiding this modal window) in your CSS.