Files
WebDB/website/public/js/post.js
2017-01-26 12:21:01 +01:00

19 lines
328 B
JavaScript

function postComment() {
$.post(
"API/postComment.php",
$("#newcommentform").serialize()
);
$("#newcomment").val("");
//reload post
$.get(
"API/loadPost.php",
$("#newcommentform").serialize()
).done(function (data) {
$('#modal-response').html(data);
});
}