title: jQuery confirm and then post with ajaxForm
body: <p>The following jQuery code executes the <code>ajaxForm</code> function even if I press the <code>Cancel</code> button. In addition, the <code>success</code> part doesn't update the <code>content</code>, either. Can anybody tell me what's wrong with it? Thanks.</p>
  
  <pre><code>$(document).ready(function() {
    $(".myForm").click(function (e) {
      if (confirm("Are you sure?")) {
        $(".myForm").ajaxForm ({
          success: function(returnData) {
            $('#content').html(returnData);
          }
        });
      }
    });
  });
  </code></pre>