我无法使用ajax响应设置表单的文件输入值....请帮助...
Jquery的
$.ajax({
url: "getSelectedUser.php",
type: "post",
data: {pro_id: id},
dataType: "json",
success: function(response) {
$("#editproductname").val(response.name);
$("#editspecifications").val(response.specification);
$("#editproductimage").val(response.image);
}
});
HTML
<input type="file" name="editproductimage" id="editproductimage" value="">