title: onclick="return confirm('')" working with $('.class').click(function () {});
body: <p>I have this function that disables the input after user clicks:</p>
  
  <pre><code>$('.click-off').click(function () {
      var btn = this;
      setTimeout(function () { $(btn).attr('disabled', 'disabled'); }, 1);
      return true;
  });
  </code></pre>
  
  <p>And I have this input with a javascript confirmation:</p>
  
  <pre><code>&lt;input type="submit" class="click-off" onclick="return confirm('Are you sure?');" value="Delete"&gt;
  </code></pre>
  
  <p>Even if I click "cancel" in the confirmation box, the $('.click-off').click() event is called, and the button becomes disabled.</p>
  
  <p>The $('.click-off').click() is used by a lot of inputs, so the confirmation can't be inside of it.</p>
  
  <p>How can I check the confirm return in the $('.click-off').click event? Or even prevent the $('.click-off').click event to be called?</p>