addCalendarToTextBox()

    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

Description

Add Date Picker to Text Box

Details

Double click on the code to select all.

 

;