title: Show JQuery UI datepicker on input field click?
body: <p>OK maybe this is a trivial issue but I'm very interested to see if anyone has any ideas on this:</p>
  
  <p>I am using JQuery UI. I have an <code>&lt;input id="#myfield" type="text"&gt;</code> field and I call <code>$('#myfield').datepicker()</code>. The datepicker shows whenever the field gets focus. But the field is the first one in my form and is already in focus when it loads, so clicking on the field doesn't show it. Also, if I close the datepicker with the Esc key, then I can't open it again by clicking on the field, for the same reason: it's already in focus.</p>
  
  <p>I am aware that I could set the parameter <code>.datepicker({showOn: 'button'})</code> but I don't want the button. Is there any way to have the datepicker appear when the field gets focus OR is clicked when already in focus? I already tried <code>$('#myfield').click( function () { $(this).focus() } )</code> and it makes the datepicker open correctly when I click the input field, but then when I select a date it doesn't appear in the field.</p>