DateTimePicker.TextChange

Syntax

TextChange: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The TextChange event occurs on changing the value in the input box.

Example

To execute the example, create the DateTimePicker component (see Example of Creating the DateTimePicker Component) named DTP. Add the TextChange event handler:

DTP.TextChange.add(function (sender, args)

{

      alert("Old Date: " + args.OldValue  + " New Date: " + args.NewValue)

})

After executing the example on changing the value in the input box the information message concerning the previous and the specified date is displayed.

See also:

DateTimePicker