Код: Выделить всё
Execution of Javascript failed:
Type: TypeError
Message: $(...).datepicker is not a function
Stacktrace: TypeError: $(...).datepicker is not a function
Код: Выделить всё
//update document property after selection
function datePicker_onSelect(selectedDate){
//alert(selectedDate)
$("#dt1 input").focus()
$("#dt1 input").blur()
}
//jquery datepicker configuration
//you can comment the buttonImageOnly and buttonImage lines to show a button instead of a calendar or the image of your choice.
pickerOptions = {
showOn: 'button',
buttonImageOnly: true,
buttonImage: 'http://staff.washington.edu/tabrooks/343INFO/UnobtrusiveDatePicker/cal-grey.gif',
minDate: "-15M", maxDate: "-1D",
defaultDate: -1,
changeMonth: true,
changeYear: true,
altField:"#dt1 input",
onSelect:datePicker_onSelect
}
//create the date picker
document.getElementById('dt1picker').innerHTML=""
$("#datePicker").datepicker(pickerOptions);
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/773 ... -in-12-5-0