title: jQuery confirm window - cancel button not resetting value
body: <p>I've got some jQuery that displays a confirm box if the user chooses a value of 'Yes' in a select field.</p>
  
  <p>In the confirm box, if the user clicks the OK button, I want the value to remain as it is. If the user clicks the Cancel button, I want the value to change back to what it was previously.</p>
  
  <p>I've almost got this working with the code below, except that when the user clicks the Cancel button, the value remains as 'Yes' instead of returning to 'No'.</p>
  
  <p>Any help in fixing this would be appreciated.</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function(){
  $('#publish_details').change(function(){
      if($(this).val() == 'Yes')
      { window.confirm("Are you sure you want to publish these details?"); }
      });
  });
  &lt;/script&gt;
  
  &lt;select name="publish_details" id="publish_details" /&gt;
      &lt;option value="No" selected="selected"&gt;No&lt;/option&gt;
      &lt;option value="Yes"&gt;Yes&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>Ste</p>