Jquery UI Datepicker onclick event
问题 I want to open a URL when the user clicks on an event's date. I use jQuery UI Datepicker, and I don't see where the problem is. This is my code : <script> $(document).ready(function() { var events = [ { Title: "titre", Idevent: "1", Date: new Date("05/20/2012")}, { Title: "test24", Idevent: "3", Date: new Date("06/14/2012")} ]; $("#calendarcaps").datepicker({ beforeShowDay: function(date) { var result = [true, '', null]; var matching = $.grep(events, function(event) { return event.Date