当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Form dropdownlist change event not triggering

问题描述:

I've seearched the site but I haven't found any answer on it. I'm trying to use the change event for a dropdownlist and get the value of it but it doesn't work. The change event doesn''t seem to be triggering. Does anyone know why?

var list = document.getElementById('voteSite');

var frame = document.getElementById('frame');

list.addEventListener('change',listChange,false);

function listChange(){

alert("test");

}

分享给朋友:
您可能感兴趣的文章:
随机阅读: