var id = document.getElementById("addquerstions"); id.onmousedown = function(){ this.sindex = this.selectedIndex; this.selectedIndex = -1; } id.onmouseout = function() { var index = id.selectedIndex; if (index == -1) { this.selectedIndex = this.sindex; } }
实现select change 点击重复内容无法触发问题
猜你喜欢
转载自blog.csdn.net/chose_doit/article/details/78181166
今日推荐
周排行