开发者

javascript input onchange not working

开发者 https://www.devze.com 2022-12-31 02:05 出处:网络
why this doesn´t work: 开发者_运维知识库inputButton.addEventListener(\'onchange\', jsFunction, false);

why this doesn´t work:

开发者_运维知识库inputButton.addEventListener('onchange', jsFunction, false);

I change the inputbox and it doesn´t call jsFunction.


Try change instead of onchange

inputButton.addEventListener('change', jsFunction, false);
0

精彩评论

暂无评论...
验证码 换一张
取 消