title: Modal onload in page Bootstrap 3
body: <p>I would like to know how do I make modal automatic when the index page is triggered?</p>
  
  <p>I would like to open one modal index came on the screen, what should I change in bootstrap 3 to come this effect?</p>
  
  <p>Modal in onload window in open page.</p>
  
  <p>Thanks for the help guys.</p>
  
  <p>I put in the following way</p>
  
  <p>I'm doing something wrong?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $( document ).ready( function() {
      $( '#teste' ).modal( 'toggle' );
  });
  &lt;/script&gt;
  
  &lt;!-- Modal --&gt;
  &lt;div class="modal fade in" id="teste" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
    &lt;div class="modal-dialog"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
          &lt;h4 class="modal-title" id="myModalLabel"&gt;Modal title&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&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;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;&lt;!-- /.modal-content --&gt;
    &lt;/div&gt;&lt;!-- /.modal-dialog --&gt;
  &lt;/div&gt;&lt;!-- /.modal --&gt;
  </code></pre>