Wijmo UI for the Web
selectedDatesChanged Event
Standard jQuery event object
Information about an event
The selectedDatesChanged event handler. A function called after the selectedDates collection changed.
Syntax
Javascript (Usage) 
$(function () {
    // Set selectedDatesChanged event handler function
    $(".selector").wijcalendar({
        selectedDatesChanged : function (e, data) {
     
        }
    });
});
Javascript (Specification) 
selectedDatesChanged = function ( 
   e : jQuery.Event,
   data : ISelectedDatesChangedEventArgs
) { };

Parameters

e
Standard jQuery event object
data
Information about an event
Example
$("#calendar").wijcalendar(
  {
  popupMode: true,
  selectedDatesChanged: function () {
  var selDate = $(this).wijcalendar("getSelectedDate");
  var selectDate = new Date(selDate);
  if (!!selDate) $("#popdate").val(selectDate.getMonth() + 1 + "/" + selectDate.getDate() + "/" + selectDate.getFullYear());
  }

See Also

Reference

options type
wijcalendar jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.