title: Javascript confirm() not working correctly
body: <p>I have this page and I am trying to confirm a date that's from an input text field vs the current date.  If the date from the input field is later then the current date, the confirm box needs to come up to confirm that they are putting down the right date. So the 'OK' button needs to finish submitting the data and the 'Cancel' button needs to return them back to the AJAX form. </p>
  
  <pre><code>if($('sdate' &gt; curdate)) {
      confirm("The date you chose " + curdate + "is in the future OK to continue");
  }
  </code></pre>
  
  <p>I also wanted the <code>'sdate'</code> to appear in the confirm box instead of <code>curdate</code>, but whenever I try that the form no longer appears.</p>