Reputation: 3500
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
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