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
I don't know why do you need this onmousedown event here, but what you have to do is put your function above actual usage. Look at the snipplet below:
onmousedown
One Two Three