addCalendarToTextBox()
Add Date Picker to Text Box
Source
function addCalendarToTextBox() {
$('.calendar').datepick({
showOn: 'both'
, buttonImage: imageIcon
, buttonImageOnly: true
, yearRange: '-30:10'
, hideIfNoPrevNext: true
}).width(80);
}
Example
just add class='calendar' to your text box element