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.
精彩评论