title: Bootstrap modal popup confirmation prevent multiple click
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    $('button[name="remove_levels"]').on('click', function (e) {
          var $form = $(this).closest('form');
          e.preventDefault();
          $('#confirm').modal({
              backdrop: 'static',
              keyboard: false
          }).one('click', '#delete', function (e) {
              /*$(this).off(e);*/
              alert("Hello World");
          });
      });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="//getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" /&gt;
  
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="//getbootstrap.com/2.3.2/assets/js/bootstrap.js"&gt;&lt;/script&gt;
      &lt;button class='btn btn-danger btn-xs' type="submit" name="remove_levels"&gt;&lt;span class="fa fa-times"&gt;&lt;/span&gt; Click Here&lt;/button&gt;
  
  &lt;div id="confirm" class="modal hide fade"&gt;
      &lt;div class="modal-body"&gt;
          Are you sure?
      &lt;/div&gt;
      &lt;div class="modal-footer"&gt;
          &lt;button type="button" data-dismiss="modal" class="btn btn-primary" id="delete"&gt;Delete&lt;/button&gt;
          &lt;button type="button" data-dismiss="modal" class="btn"&gt;Cancel&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Above I have posted my code. Please check reference link <a href="https://stackoverflow.com/questions/22636819/confirm-delete-using-bootstrap-3-modal-box#answer-22637301">click here</a></p>
  
  <p>My Issue is when I have clicked multiple times of <code>Cancel</code> button then click on <code>Delete</code> button my alert <code>Hello World</code> is showing that number of times.</p>
  
  <p>Eg.: Suppose I have clicked 3 times of <code>Cancel</code> button then I click on <code>Delete</code> button I got 4 times <code>Hellow World</code> alert. </p>
  
  <p>Please help me.</p>