HTML
<div class="send">click<input name="files[]" class="file" type="file"></div>
Javascript:
$('body').on('click', '.send', function(e) {
$(document).find('.file').click();
});
CSS:
input {
opacity: 0;
}
Clicking on "click" is returned error, as it detects click on the parent div and daughter div causing a loop, how to solve? I just want to open the input file.
ex: link