开发者

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

$("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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜