call javascript function onchange event of dropdown list

后端 未结 5 706
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 19:38

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

5条回答
  •  没有蜡笔的小新
    2021-02-01 19:49

    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:

    
    
    

提交回复
热议问题