title: Bootstrap modal on button click needs full reload of modal window
body: <p>I need to full reload modal window on clicking on button(span here)
  Right now clicking is opening modal window and closing modal window.</p>
  <p>if i use this code:</p>
  <pre><code>$('#youtubeModal').on('hidden.bs.modal', function (event) {
          $('#youtubeModal').modal('toggle')
  })
  </code></pre>
  <p>It's just reopening modal window, but i need full reload.</p>
  <p><strong>I have rigth now:</strong></p>
  <ol>
  <li>I press the button.</li>
  <li>Modal shown with all working fine.</li>
  <li>I press the button</li>
  <li>Modal hidden.</li>
  <li>I press the button.</li>
  <li>Modal open and loading again ajax and work fine.</li>
  </ol>
  <p><strong>I need</strong>
  delete 4. and 5. :</p>
  <ol>
  <li><p>I press the button.</p>
  </li>
  <li><p>Modal shown with all working fine.</p>
  </li>
  <li><p>I press the button</p>
  </li>
  <li><p>Modal reopen and reloading ajax and work fine.</p>
   
       
  <pre><code> &lt;div class=&quot;modal fade&quot; id=&quot;youtubeModal&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-labelledby=&quot;exampleModalLabel&quot;&gt;
       &lt;div class=&quot;modal-dialog&quot; role=&quot;document&quot;&gt;
           &lt;div class=&quot;modal-content&quot;&gt;
               &lt;div class=&quot;modal-body&quot;&gt;
               &lt;/div&gt;
               &lt;div class=&quot;modal-footer&quot;&gt;
                   &lt;button type=&quot;button&quot; class=&quot;btn btn-default&quot; data-dismiss=&quot;modal&quot;&gt;Close&lt;/button&gt;
               &lt;/div&gt;
           &lt;/div&gt;
       &lt;/div&gt;
   &lt;/div&gt;
   &lt;script&gt;
       $('#youtubeModal').on('show.bs.modal', function (event) {
           let button = $(event.relatedTarget) // Button that triggered the modal
           let youtubeUrl = button.data('url') // Extract info from data-* attributes
  
           $.ajax({
               url: '&lt;?= \yii\helpers\Url::toRoute(['youtube/index'])?&gt;',
               type: 'post',
               data: {youtubeUrl: youtubeUrl},
               success(response) {
                   // Add response in Modal body
                   $('.modal-body').html(response);
                   //$('#exampleModal').html(response);
                   // Display Modal
                   //$('#exampleModal').modal('show');
               }
           });
       });
   &lt;/script&gt;
  </code></pre>
  </li>
  </ol>