onBeforeDateSelect

fires before a user selects date in the DateRange

void onBeforeDateSelect(object range){ ... };

Parameters

rangeobjectrange object with 'start' and 'end' properties

Example

$$('daterange1').attachEvent("onBeforeDateSelect", function(range){
    //... some code here ... 
});

Details

The range object contains two properties:

  • start - (Date) a Date object for the start date
  • end - (Date) a Date object for the end date
See also
Back to top