title: How do I explicitly execute default action from jQuery event
body: <p>Following up from <a href="https://stackoverflow.com/questions/8094008/best-unobtrusive-way-to-add-jquery-confirm-to-an-arbitrary-element">this question</a>, I'm trying to implement an unobtrusive confirm dialog.</p>
  
  <pre><code>$(document).ready(function () {
      $("[data-confirmPrompt]").click(function (event) {
          var confirmPrompt = event.currentTarget.attributes['data-confirmPrompt'].value;
          event.preventDefault();
          $.prompt(confirmPrompt, {
              buttons: { Yes: true, No: false },
              callback: function (v, m, f) {
                  if (v) {
                      // User clicked Yes.  Unbind handler to avoid
                      // recursion, then click the target element again
                      $(event.currentTarget).unbind('click');
                      event.currentTarget.click();
                  }
              }
          });
      });
  });
  </code></pre>
  
  <p>When the user has clicked on "Yes", I want the default action associated with the event to execute.  I've done it above by unbinding the jQuery handler, and clicking the element again.  This works fine when submitting a form or navigating to a different page - but of course does not work in AJAX-enabled pages, where I want to keep the jQuery event handler.</p>
  
  <p>Is there an alternative generic way to execute the default action? Logically something like <code>event.executeDefault()</code>.</p>