开发者

How would I rewrite this snippet of jQuery to work in IE?

开发者 https://www.devze.com 2023-02-11 06:24 出处:网络
$(\"input[multiple]\").click(); That command works fine in Chrome / Firefox but not IE, does anyone know what the cross browser equivalent of it would be?
$("input[multiple]").click();

That command works fine in Chrome / Firefox but not IE, does anyone know what the cross browser equivalent of it would be?

edit

With thanks t开发者_如何学Pythono @Andrew Marshall

alert($("input[multiple]").size())

returns 0.


at least I do not see any 'multiple' attribute at the <input> tag for old html:

http://www.w3.org/TR/html401/interact/forms.html

that attribute looks like something new in html5:

http://dev.w3.org/html5/spec/common-input-element-attributes.html#attr-input-multiple

which IE are you using? does it support html5? does it just fallback to html4? i checked IE6, IE7 and IE8 on http://html5test.com and neither of them supports the 'multiple' attribute at the <input> tag.

0

精彩评论

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