Я использую jQuery UI datepicker, и я хочу отображать дополнительный текст внутри ячеек даты рядом с датой. Это желаемое поведение:
К сожалению, манипулирование ячейками дат с использованием функций .text()
и .html()
ломает функциональность datepicker. См. Следующую демонстрацию и попробуйте использовать datepicker. Обратите внимание, что когда вы выбираете дату (i), пользовательский текст уходит (ii) изменения месяцев уничтожают календарь и помещают вас в месяц "undefined NaN":
https://jsfiddle.net/salman/aLdx4L0y/
Есть ли решение?