Simply simulate a click on the by using the trigger() function when clicking on a styled
. I created my own button out of a
and then triggered a click on the input when clicking my
. This allows you to create your button however you want because it's a
and simulates a click on your file . Then use display: none on your .
// div styled as my load file button
Load from backup
// Click function for input
$("#readFile").click(function() {
readFile();
});
// Simulate click on the input when clicking div
$("#simClick").click(function() {
$("#readFile").trigger("click");
});