title: Bootstrap modal. Catch Uncaught TypeError: Object [object Object] has no method 'modalmanager'
body: <p>I get a:</p>
  
  <pre><code>Uncaught TypeError: Object [object Object] has no method 'modalmanager' 
  </code></pre>
  
  <p>In my script.js file I have:</p>
  
  <pre><code>$('#addShoplistModal').modal('toggle');
  </code></pre>
  
  <p>Code of my jsp page:</p>
  
  <pre><code>&lt;div class="modal hide fade" id='addShoplistModal'&gt;
  &lt;div class='modal-header'&gt;
      &lt;a class='close' data-dismiss='modal'&gt;×&lt;/a&gt;
      &lt;h3&gt;Add Shopitem&lt;/h3&gt;
  &lt;/div&gt;
  
  &lt;div class='modal-body'&gt;
      &lt;form id="addShopitemForm"&gt;
          &lt;div id="name-error"&gt;&lt;/div&gt;
          &lt;input type="text" id="name" placeholder="Name" /&gt;
          &lt;div id="quantity-error"&gt;&lt;/div&gt; 
          &lt;input type="text" id="quantity" placeholder="Quantity" /&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;div class='modal-footer'&gt;
      &lt;a class="btn" data-dismiss="modal"&gt;Cancel&lt;/a&gt; 
  
          &lt;a shoplistId="" id="add-shoplist" class="btn btn-primary"&gt;Add&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
      &lt;script src="&lt;spring:url value="/web/js/jquery-2.0.0.js" /&gt;"&gt;&lt;/script&gt;
      &lt;script src="&lt;spring:url value="/web/js/jquery.validate.js" /&gt;"&gt;&lt;/script&gt;
      &lt;script src="&lt;spring:url value="/web/js/bootstrap.js" /&gt;"&gt;&lt;/script&gt;
      &lt;script src="&lt;spring:url value="/web/js/bootstrap-modal.js" /&gt;"&gt;&lt;/script&gt;
      &lt;script src="&lt;spring:url value="/web/js/script.js" /&gt;"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The error is at bootstrap-modal.js at</p>
  
  <pre><code>manager = manager.appendModal ?
              manager : $(manager).modalmanager().data('modalmanager');
  </code></pre>
  
  <p>Tell me, please, how to fix this problem. Thanks.</p>