I have a a jquery.ui datepicker. I set it up like so:
SetupDatepicker($(".date-three-field"), {
"buttonText": "Calendar",
});
Say, I later want to change the text of the button. Based on this SO answer here, I thought I could just do something like:
$("#id").datepicker('destroy');
$("#id").datepicker("option", { buttonText: "test" })
However, the text remains as 'calendar'. What am I doing wrong?