开发者

<input type="file"> open browser window in IE6 on clicking on text field area as Firefox

开发者 https://www.devze.com 2023-03-16 15:47 出处:网络
<input type=\"file\"> in IE开发者_如何学JAVA6 when I write something in field text area it is writable but not in firefox and chrome. I want to open browser window in IE6 on clicking on text fie

<input type="file"> in IE开发者_如何学JAVA6 when I write something in field text area it is writable but not in firefox and chrome. I want to open browser window in IE6 on clicking on text field area as same as Firefox.


The file input field's look and feel and behabior are different from browser to browser. It's not easy to change this. You are better off using a plugin that hides the file input field and replaces it with a custom one. Like the one here - http://plugins.jquery.com/project/jquery-prettyfile. With jQuery you may also try the following code -

$('input[type="file"]').focus(function(){$(this).click();$('body').focus();});

I don't have IE6 so can't check it; but it works on IE7 and 8.

0

精彩评论

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