How can i call a bootstrap modal from my main index.html page?
<p>i have a index.html where my website resides  i searched on stackoverflow itself but the solution didnt work..i want to call a modal placed in my login.html here's my index.html code</p>

<pre><code>&lt;body&gt;
            &lt;nav class="navbar navbar-default navbar-static-top " role="navigation"&gt;
            &lt;div class="container-fluid"&gt;
            &lt;div class="navbar-header"&gt;
            &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-Optio-navbar-collapse-1" aria-expanded="false"&gt;
                &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;

              &lt;/button&gt;
            &lt;a class="navbar-brand" href="#"&gt;&lt;img src="images/Untitled-3-0.png"&gt;&lt;/a&gt;
            &lt;/div&gt;
            &lt;div class="collapse navbar-collapse navbar-right" id="bs-Optio-navbar-collapse-1"&gt;
            &lt;ul class="nav navbar-nav"&gt;
            &lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="index.html"&gt;About&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="index.html"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="LightBoxForm.html" class="btn btn-primary btn-md" role="button" data-toggle="modal"  data-target="#lightboxform" &gt;Log In&lt;/a&gt;&lt;/li&gt;
            &lt;div id="lightboxform" class="modal fade" tabindex="-1" data-width="500"&gt;
        &lt;div class="modal-dialog"&gt;
    &lt;div class="modal-content"&gt;
    &lt;/div&gt;
    &lt;/div&gt;

&lt;/div&gt;
            &lt;li&gt;&lt;a href="#" class="btn btn-warning btn-md" role="button"&gt;Sign Up&lt;/a&gt;&lt;/li&gt;


            &lt;/ul&gt;



            &lt;/div&gt;
        &lt;/div&gt;




            &lt;/nav&gt;
&lt;body&gt;
heres the declaration of files
 &lt;link href="css/bootstrap.css" rel="stylesheet"&gt;
  &lt;link href="css/bootstrap-responsive.css" rel="stylesheet"&gt;
  &lt;link href="css/bootstrap-modal.css" rel="stylesheet"&gt;

  &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
  &lt;script src="js/bootstrap.js"&gt;&lt;/script&gt;
  &lt;script src="js/bootstrap-modalmanager.js"&gt;&lt;/script&gt;
  &lt;script src="js/bootstrap-modal.js"&gt;&lt;/script&gt;
</code></pre>

<p>code inside login.html........</p>

<pre><code>&lt;!-- Modal --&gt;
  &lt;div class="modal fade" id="myModal" role="dialog"&gt;
    &lt;div class="modal-dialog"&gt;

      &lt;!-- Modal content--&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
          &lt;h4 class="modal-title"&gt;Modal Header&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          &lt;p&gt;Some text in the modal.&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;
</code></pre>

<p>PS:I DID THIS FOLLOWING <a href="https://stackoverflow.com/questions/32958219/getting-bootstraps-modal-content-from-another-page">Getting Bootstrap&#39;s modal content from another page</a></p>