title: Jquery event on close class button in alert of Bootstrap
body: <p>I want to perform some Jquery Event on clicking the Close sign on the alert Block of Jquery.
  My VIew code is as below::</p>
  
  <pre><code>&lt;div class=' alert alert-block fade in'  &gt;
      &lt;button type='button' class='close' data-dismiss='alert'&gt;×&lt;/button&gt;
      &lt;p&gt;Just Close Me  &lt;/p&gt;
  &lt;div&gt;
  </code></pre>
  
  <p>My Js code is as below::</p>
  
  <pre><code>$('button.close').click(function () {
                  var id = $(this).attr('data-id');
                  alert("deleted list is"+id);
  
              });
  </code></pre>
  
  <p>As per the above code I am not able to detect or do Jquery events on clicking that 'X' button. </p>