title: How to add an event after close the modal window?
body: <p>I have code modal:</p>
  
  <pre><code>    &lt;-- Button to trigger modal --&gt;
  &lt;div id="result"&gt;&lt;/div&gt;
  &lt;a href="#myModal" role="button" class="btn" data-toggle="modal"&gt;Launch demo modal&lt;/a&gt;
  
  &lt;-- Modal --&gt;
  &lt;div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
    &lt;div class="modal-header"&gt;
      &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;×&lt;/button&gt;
      &lt;h3 id="myModalLabel"&gt;Modal header&lt;/h3&gt;
    &lt;/div&gt;
    &lt;div class="modal-body"&gt;
      &lt;p&gt;One fine body…&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="modal-footer"&gt;
      &lt;button class="btn" data-dismiss="modal" aria-hidden="true"&gt;Close&lt;/button&gt;
      &lt;button class="btn btn-primary"&gt;Save changes&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And i have code when should been after close moal window:</p>
  
  <pre><code>$('#result').html('yes,result');
  </code></pre>
  
  <p>Tell me please how to make that when closing the modal window(close or hide) executed a second code ?</p>