jQuery: The Write Less, Do More JavaScript Library

Plugins/Calendar/setDateFor

From jQuery JavaScript Library

Jump to: navigation, search


« Back to Plugins/Calendar

setDateFor( control, date )

Set the current date for the calendar attached to an input field.
Arguments:
controlElement
The input field, division or span to which the calendar is attached.
dateDate
The new date value.


Examples:
Retrieve the calendar date for an input field.

popUpCal.setDateFor($('#invokeFocus')[0], new Date(2007, 1 - 1, 26));

NameType