I want to invoke javascript function when value in the dropdown list changes. I dont want to hardcode dropdown list id .
Hence not using document.getElem
document.getElem
jsFunction is not in good closure. change to:
jsFunction = function(value) { alert(value); }
and don't use global variables and functions, change it into module