jQuery 1.7.2 jQuery UI 1.8.18
I have a jQuery UI Modal Dialog that contains a jQuery UI Datepicker. This is a pop up editor we are using with our app. The first time the user pops up the editor everything works fine including the Datepicker. After that when the editor is poped - the Datepicker shwos up when the icon is clicked but selecting a date will not change the values in the associated input tag as it should (and did the first time).
Since the Dialog seems to cache I have tried both versions of assigning the Datepciker below (with this and without this) - both function exactly the same - works on first pop up then will not select the new date.
$(function () {
$("#txtTrxTravelDate", this).datepicker({
changeMonth: true,
changeYear: true,
showOn: "button",
buttonImage: "../Images/calendarSm.gif",
buttonImageOnly: true
});
});
$(function () {
$("#txtTrxTravelDate").datepicker({
changeMonth: true,
changeYear: true,
showOn: "button",
buttonImage: "../Images/calendarSm.gif",
buttonImageOnly: true
});
});