title: Set value of datepicker?
body: <p>I've explored maybe 30 threads and my problem still isn't solved.</p>
  
  <p>I have a JQuery datepicker:</p>
  
  <pre><code>&lt;input id="datepicker" name="date" class="mydatepicker" onchange="isValidDate()"&gt;&lt;/input&gt;
  </code></pre>
  
  <p>I simply want to write a javascript function that accomplishes this when called:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  document.getElementById("datepicker").value = 'certain date';
  &lt;/script&gt;
  </code></pre>
  
  <p>datepicker is tied to these files:</p>
  
  <pre><code>&lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt;
  </code></pre>