Kuba Orlik
Kuba Orlik

Reputation: 3500

How to use jQuery UI's datepicker in Apps Script's HTML Service?

I've managed to display the calendar in the UI, but I can't make it react to any events. I've tried

$(function() {
        $('#datepicker').datepicker({
           onSelect: function(dateText, inst) {alert(dateText); }
       });
    });

but it doesn't work... Please help

Upvotes: 0

Views: 924

Answers (1)

Corey G
Corey G

Reputation: 7858

Looks like a bug to me. Issue filed with Caja as issue 1496.

Update: turns out this is a jQueryUI bug, which is fixed in the latest jQuery revision but not the official stable revision (8.22). If you find a link to a version >= 8.22 hosted somewhere it should work although it will be slowish. We will get the update as soon as jQueryUI releases a new stable branch.

Upvotes: 3

Related Questions