开发者

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

开发者 https://www.devze.com 2023-04-11 09:40 出处:网络
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 i

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

精彩评论

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

关注公众号