Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7770447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:24:45+00:00 2026-06-01T16:24:45+00:00

I am new to Bootstrap and am having a few issues getting modal dialogs

  • 0

I am new to Bootstrap and am having a few issues getting modal dialogs to work correctly. Despite setting show:false, the dialog displays every time the page is refreshed.

Here’s a fiddle showing the issue: Fiddle

Code:

<a class="btn" data-toggle="modal" href="#modalwrapper" >Log On</a>


<div class="modal" id="modalwrapper">
    <div class="modal-header">
        <a class="close" data-dismiss="modal">×</a>
        <h2>Log On</h2>
    </div>

    <div class="modal-body span7">    
      Body
    </div>

    <div class="modal-footer">
        <a href="#" class="btn">Close</a>
        <a href="#" class="btn btn-primary">Save changes</a>
    </div>
</div>


$(function () {
    $('#modalwrapper').modal({
        backdrop: true,
        keyboard: true,
        show: false
    });
});

I have verified that the .modal call is being executed.

What am I doing wrong? Adding a display:none style addresses the issue but that is not the point.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:24:46+00:00Added an answer on June 1, 2026 at 4:24 pm

    Hide the modal using the provided hide bootstrap class

    <div class="modal hide" id="modalwrapper">
      ..
    </div>
    

    which (by looking on bootstrap.css) is basically what you imagined

    .hide {
      display: none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to work on a new project using Twitter's Bootstrap framework, but
New to javascript/jquery and having a hard time with using this or $(this) to
new Date(05-MAY-09 03.55.50) is any thing wrong with this ? i am getting illegalArgumentException
I'm writing my first PHP app. Everyone talks about having a bootstrap.php to initialize
Wanted to try something new, using the awesome twitter bootstrap and their Less CSS
I'm new to Grails, and having a problem that is no doubt trivial, but
I'm trying to implement autoloading in Php5.3 using namespaces but I'm having some issues
I am pretty new to bootstrap, jquery and client side. I am using the
I would like to use the new Bootstrap library from Twitter for an external
I'm new to the Bootstrap Twitter framework, and I need to use bootstrap-typeahead.js for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.