Replace year dropdown with textbox in jQuery Datepicker
问题 I'm trying to replace dropdown list for years with classic text box in datepicker, because I want to enter years manually. I replaced it but when try click on day in datetime picker, year and whole date cannot be shown in text box. How can I do that? This is my fiddle: http://jsfiddle.net/Fa8Xx/3567/. Thanks in advance! 回答1: Try this : <div class="demo"> <p>Date: <input id="datepicker" type="text"></p> </div> $("#datepicker").on("focus", function () { bindCloseEvent(); }); $("#datepicker")