I have been working on this problem for a while. I am trying to populate one DatePicker from another. One I am using as a log ID for Sorting purposes but I want both dates to match.
The first DatePicker runs on Page Load:
var dateElement = Appery("date");
dateElement.setProperty("defaultDateValue", $.datepicker.formatDate(dateElement.datepicker_dataPickerOptions.dateFormat, new Date()));
No Problems with this JS on Load
Now the second DatePicker "LogDate" I am trying to populate upon the date change of DatePicker "date".
I have inserted this JS to run upon value change of "date":
var DateVal = DateName.val();
var dateElement = Appery("LogDate");
dateElement.setProperty(DateVal);
I have tried many combinations and I am hoping I am missing something really simple here.