实现select change 点击重复内容无法触发问题

来源:互联网 发布:centos ftp客户端 编辑:程序博客网 时间:2024/05/16 11:52
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;        }    }
阅读全文
0 0
原创粉丝点击