- Viewed 72k times13edited Feb 10, 2012 at 10:09
Did you put your second function inside a jquery initialization block? I mean, it should looks like
$(function(){$('#date_caisse').datepicker({onSelect: function (dateText, inst) {alert('select!');}});});Edited:
Ok, I got it. The first time the datepicker is initialized, the original dom element is marked with a new class addition, called hasDatepicker that prevent subsequent initialization/reconfiguration. The way I found to get rid of it is to remove that marker befor doing any modification to the datepicker's configuration. Thus:
Content Under CC-BY-SA license jquery - Datepicker onSelect - Stack Overflow
Explore further
jQuery datepicker, onSelect won't work - Stack Overflow
- People also ask
jQuery UI datepicker onSelect Option - GeeksforGeeks
WEBMar 19, 2021 · The jQuery UI datepicker onSelect Option is called when the datepicker option is selected. The onSelect option holds a function that contains selected date as text and the datepicker instance as …
Datepicker Widget | jQuery UI API Documentation
Datepicker | jQuery UI
Multiple dates selection - Datepicker
Datepicker Widget | jQuery UI 1.8 Documentation
jQuery UI DatePicker - Tips and Tricks | DotNetCurry
WEBNov 11, 2015 · Views: 274929. Abstract: Learn to use the jQuery UI DatePicker with some practical examples, tips and tricks. The jQuery UI DatePicker is probably the most widely-used widgets, yet the most …
GitHub - Pikaday/Pikaday: A refreshing JavaScript Datepicker ...
How to call a js function onSelect event of datepicker jquery?