|
|
|
|
|
by Sir_Cmpwn
3667 days ago
|
|
The dropdown and tooltips look useful, but FYI it's really simple to make a file picker. Just put a hidden input type="file" on the page, then: document.getElementById("that-element").addEventListener("change", function(e) {
// e.target.files
});
document.getElementById("that-element").click();
|
|
1 : https://developer.mozilla.org/en-US/docs/Web/API/EventTarget...
2 : http://stackoverflow.com/questions/6367339/trigger-a-button-...
EDIT ( sorry can't reply to you, because HN ) :
Relevant jQuery discussion
3 : https://github.com/jquery/jquery/issues/2476