-1
이 코드를 실행하면 여러 개의 빈 필드가 있고 서버로 전달됩니다. 빈 필드는 어떻게 피할 수 있습니까?serializeArray() 메서드로 빈 필드를 무시합니다.
$.ajax({
type: "POST",
data: {serialize_data: $("form").serializeArray()},
url: "<?php echo $this->serverUrl() . $this->baseUrl(); ?>/admin/examresults/addexamresults/",
success: function(response) {
$('#msg').html(response);
}
});