<div style="visibility:hidden;"><input type="file" name="photo" id="photo" /></div>
$('#photo').trigger('change');
$('#photo').change(function(e) {
alert("change fun");
});
But alert is not displaying i mean change is not triggering at all.
My question is how to trigger change from jquery without actually browsing through file
$().trigger('change')
is proper right?