IE 8以降では、成功データを表示するためにページの更新が必要です..他のブラウザでは、この機能は正常に動作しますが、IEでは更新されたデータを表示するにはページの再読み込みが必要です
コード:
$('#ajaxEmpData').on('submit', function (e) {
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnValue = true;
}
$.ajax({
type: 'post',
url: '/candidate/emp',
data: $('#ajaxEmpData').serialize(),
error:function(request,status,error) {
alert(status);
document.getElementById('load').style.visibility = "hidden";
},
beforeSend:function(){
document.getElementById('load').style.visibility = "visible";
},
success: function (data) {
$('body').html(data);
}
});
});