jquery unrecognized expression: [@type=radio][@checked]
Exception unrecognized expression: [@type=radio][@checked]
错误: uncaught exception: Syntax error, unrecognized expression: [@type=radio][@checked]
在Jquery-1.4.2版使用该方法会报错: “Microsoft JScript 运行时错误: 例外被抛出且未被接住”,
定位到 “ throw "Syntax error, unrecognized expression: " + expr;”代码
原因: JQuery1.4.2版,“name”属性前不用加“@”符号。 例如:
$("input[@type=radio][name=checkItem][checked]")
var select=$("input[name=zdgz]:radio");
radio 在ff中默认无法选择,但可以js控制如:$("#bkkl").attr("checked", true);
相关推荐
zhanghaibing00 2020-06-28
MaureenChen 2020-05-25
风飞飘扬 2014-06-24
lbPro0 2019-11-03
donghongbz 2019-10-19
85931235 2012-01-11
yFifhting 2017-06-08
NARUTOLUOLUO 2019-07-01
人心 2019-06-30
攻城师 2019-06-29
HotStrong 2017-06-08
zfjdoreen 2016-04-13
89367741 2016-03-30
shiyiboke 2016-03-29
SinhaengHhjian 2016-01-25
89453862 2015-10-10