Tabindex for input type file in IE
When you render:
<input type="file" />
you get a box and a bu开发者_StackOverflowtton, right? (At least in Firefox and IE.)
in IE how you can tab to (focus) both the box and the button or only button.
The text box and button act as the one element in the browsers so you can only set the tab index to the thing as a whole, not each element. To focus the file input use: $('input[type=file]').focus();
You get a box and a button, right?
Nope. Google Chrome on Ubuntu, for example, doesn't have a textbox. You shouldn't expect every browser on every OS to have the same ugly form widgets as IE.
精彩评论