Search code examples
jqueryjquery-ui-datepicker

jquery keeping date picker open all the time


Normal behavior of datepicker is to open when a texbox is clicked and close when a date is selected(clicked). What I need to do is Keep it open from form load and allow user to click repeatedly.I am handling the click event

thanks


Solution

  • According to the documentation, you can call it on a div instead of an input and it will stay open and be inline. http://jqueryui.com/demos/datepicker/#inline

    You could use it's onSelect event to handle when a date is selected.