Copilot
Your everyday AI companion
About 190.000 results
    Upvotes13Top Answeredited 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
    Was this helpful?

    See results from:

  1. jquery - Datepicker onSelect - Stack Overflow

  2. jQuery datepicker, onSelect won't work - Stack Overflow

  3. People also ask
  4. 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 …

  5. Datepicker Widget | jQuery UI API Documentation

  6. Datepicker | jQuery UI

  7. Multiple dates selection - Datepicker

  8. Datepicker Widget | jQuery UI 1.8 Documentation

  9. 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 …

  10. GitHub - Pikaday/Pikaday: A refreshing JavaScript Datepicker ...

  11. How to call a js function onSelect event of datepicker jquery?