I have a problem, generate an input file type, the click event does not work. Input generate in HTML works natively clicking, or Click events on jquery or more. But when I try something like ..
$('body').append('<input type="file" id="asd" />')
None of these works, and even doing click natively, does not work, it appears, but it seems to not have any events.
document.getElementById('asd').click()
$('#asd').click()
document.getElementById('asd').dispatchEvent(new Event('click'));
That may be happening? It does not work in Chrome or Firefox ...
Even running these commands in Stackoverflow this does not work, so it can not be...
Sorry for my english.