title: Linked JavaScript not working when Bootstrap modal is shown
body: <p>After Bootstrap modal is shown, my app JavaScript is not working.</p>
  
  <p>When I execute JavaScript from console then it is working, but my app JavaScript does not work.</p>
  
  <p>Can somebody please give me advice how I can solve this issue?</p>
  
  <p><strong>HTML file:</strong></p>
  
  <pre><code>&lt;button type="button" class="btn btn-primary" id="save-category"&gt;Save changes&lt;/button&gt;
  </code></pre>
  
  <p><strong>JavaScript file:</strong></p>
  
  <pre><code>var jquery = jQuery.noConflict();
  
  jquery(window).load(function() {
  
  jquery('#add-category').click(function() {
      jquery.get('api/categories/add', function(data) {
          jquery('#modal-target').replaceWith(data);
          jquery('#myModal').modal('show');
      });
  });
  
  jquery('#save-category').click(function() {
      jquery('#myModal').modal('hide');
  });
  
  });
  </code></pre>