$('button').click(function(){
$.get('foo.php', function(data){
$('body').append(data);
$('.f').trigger('click');
});
});
//foo.php
<input class="f" type="file" >
I have a button, when it clicked, it will get data from another page and append data on body.
after get() append() the data, I want to trigger input file, but its not working
I have try only append without get() and it works.
anyone know why its not working when I use get()?