Ok so I have an input element of type file and id \"test\"
When I put in the address bar: javascript: document.getElementById(\"test\").click() it brings up the open fil
You should wrap file-input element to other (ex.:div): HTTM:
CSS: div{ height:1px; overflow: hidden; } JS: $('div input').click(); Good luck... 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
CSS:
div{ height:1px; overflow: hidden; }
JS:
$('div input').click();
Good luck...