I tried to run the code as and its working
<input type="file" />
<div class="image">
</div>
$('.image').click(function() {
$('input').trigger('click');
});
Now, I want the code as
<div class="image">
<input type="file" />
</div>
$('.image').click(function() {
$(this).find('input').trigger('click');
});
and, I am not sure why this is not working.
Sample Fiddle is here. http://jsfiddle.net/CSvjw/1538/
