开发者

jquery ui datepicker - have to leave field and then click again to show datepicker

I have a small problem with a jquery ui datepicker. If I click on the input type text then the datepicker shows and I select a date. The input then gets focus which means I have to click outside the input and then click it again to show the datepicker. This problem doesnt appear on the datepicker demo... you can just keep clicking it http://jqueryui.com/demos/datepicker/

--

No errors in console

--

  // hangout date - jquery ui timepicker
  $("#hangout_date").datepicker({ dateFormat: 'D d M yy' });

<p id="hangout_date_container">
  <%= f.label :startdate, "Start D开发者_如何学JAVAate" %>
  <br />
  <input type="text" id="hangout_date" name="hangout_date" size="30" value="" />
</p>


Simply updating from jquery ui 1.8.15 to 1.8.16 fixed it. Sorry should have done that before wasting your time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜