1: By default, when the date input text box gets the page focus, the date picker component will open the calendar selection panel in an overlay . When the date input text box When the box loses focus or a date is selected, the calendar selection panel will be automatically closed $(selector).datepicker([options]); Simple example:
6: Some events of the date picker 6.1 beforeShow event: This event is triggered before the date picker is displayed. 6.2 beforeShowDay event: This event will be triggered before each day is selected on the date picker function(date) {} 6.3 onChangeMonthYear: This event will be triggered when the date picker selects a new year or month function(year , month, inst); 6.4 onClose event: This event is triggered when the date picker control is closed. function(dataText, inst) {} 6.5 onSelect event: This event is triggered when the date picker selects a date. function(dataText, inst) {} //dataText is the string of the selected date, inst is the date picker instance
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn