If you use a standard form with a set of standard input files, you can do it as follows http://jsfiddle.net/thXre/
$(document).ready(function(){ $('.remove').click(function(){ $(this).closest('div').slideUp('slow', function(){$(this).remove();}); }); });โ
and html code:
<div> <input type='file' name='files[]'> <img src='x.gif' class='remove'> </div> <div> <input type='file' name='files[]'> <img src='x.gif' class='remove'> </div> <div> <input type='file' name='files[]'> <img src='x.gif' class='remove'> </div>
source share