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
- Author: John D. Sanders
- Submitted on: 15-1-2014 16:35:41
- Language: JavaScript
- Type: TextBox
- Views: 2334
Double click on the code to select all.