It can get a little hairy. The calendar most likely sends the line back in the format specified by the calendar settings. If so, matching the format string with the values ββfor the items in the drop-down list is likely to do the trick. Sort of:
function clickCallback(clickValue){ document.getElementByID().selectedIndex = clickValue; }
This trick figures out how you are going to get the index and return values ββin a string.
source share