【发布时间】:2020-06-29 09:10:34
【问题描述】:
我想更改以下代码以兼容 jquery 1.4.1 版
$(document).on("change","select",function(){
$("option[value=" + this.value + "]", this)
.attr("selected", true).siblings()
.removeAttr("selected")
});
【问题讨论】:
-
你试过什么?当你尝试时失败了什么?
-
Uncaught TypeError: $(...).setValue is not a function
-
Uncaught TypeError: Cannot read property 'destroy' of undefined
-
出现这些错误
-
请附上尝试的代码,以便我们查看您拥有的内容,这样会更容易指导您。
标签: javascript jquery