- 정보공유
[JQUERY] jquery 로 text 필드와 file 첨부를 동시에.
var f = document.forms.wzfrm;
var formData = new FormData(f);
$.ajax({
type : 'post',
async : true ,
url : './formUpdate.php',
dataType : 'json',
cache : false ,
data: formData,
cache: false,
contentType: false,
processData: false,
success:function(req) {
alert(req.restx);
if (req.rescd == '00') {
location.href = '';
}
}
});