<div id="files">
<input type="button" id="addCom" value="添加上传图片" />
<input type="file" name="uploads" style="width:214px;" />
</div >
<script type="text/javascript">
$(function(){$("#addCom").bind("click",function(){
$("#files").append("<p><input type='file' name='uploads' style='width:214px;'/><span class='delet' style='font-size:12px'> 删除</span></p>");
})
$(".delet").live("click",function(){
$(this).parent().slideUp(0,function(){$(this).remove();});
});
})
</script>