title: Set initial value in datepicker with jquery?
body: <p>I'm trying to set an initial value in my jquery ui datepicker. I've tried several different ways, but nothing seems to display the date, it's empty.</p>
  
  <pre><code>var idag = new Date();
  $("#txtFrom").datepicker("setDate", idag - 2);
  $("#txtTom").datepicker("setDate", idag);
  $("#txtFrom").datepicker("refresh");
  $("#txtTom").datepicker("refresh");
  </code></pre>