thể trùng lặp:
Clearing <input type='file' /> using jQueryCan không rõ ràng input type = file trong javascript jquery
Đây là mã của tôi:
<input ID="fileUpload1" runat="server" type="file" style="width:275px; position:absolute; left:1px"/>
Tôi đã thử một số giải pháp :
$("input[type='file']").val('');
$('#DivfileUpload').replaceWith("<input class=VWButton ID=fileUpload1 runat=server type=file style=width:275px; position:absolute; left:1px/>");
và nhiều trang khác từ web nhưng không thành công.
Có thể trùng lặp: http://stackoverflow.com/q/1043957/663604 –
Tôi sử dụng câu trả lời đó nhưng thực sự không có succced. – anmarti