title: jQuery: button click confirmation
body: <p>I have the following html and jquery codes for deleting a member account with confirmation. But the code doesn't seem to work: even if I click "cancel" in the pop-up window, the request is still submitted and the account is deleted. How should I correct this? Thanks.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;button class="member" href="/admin?arg1=deleteMember" onclick="return confirm('Are you sure？')"&gt;Delete member&lt;/button&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready(function() {
    $('.member').click(function() {
      var url = $(this).attr('href');
      $('#content').load(url);
        return false;
    });
  });
  </code></pre>