title: jquery datepicker links to own script url instead picking date google apps script
body: <p>A problem I face using the jQuery datepicker:</p>
  
  <p>In a Google Apps Script HTML template, the following happens:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.8.23/themes/base/jquery-ui.css"&gt;
  &lt;script src="http://code.jquery.com/jquery-1.8.2.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.jquery.com/ui/1.8.23/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css"&gt;
  &lt;script&gt;
  $(function() {
  $( "#datepicker" ).datepicker();
  });
  &lt;/script&gt;
  
  &lt;input type="text" id="datepicker"&gt;
  </code></pre>
  
  <p>The datepicker presents itself like this:
  <a href="http://i.imm.io/V2EH.png" rel="nofollow">http://i.imm.io/V2EH.png</a></p>
  
  <p>When hovering a date, you see in the bottom that a link is generated. Selecting a date will cause the script to reload, instead of the date value to be entered in the field...</p>
  
  <p>I am confused...</p>