Challenge 3: First setup completed

This commit is contained in:
Nanne Baars
2017-04-08 22:15:58 +02:00
parent 9bc219e931
commit cebf74cd10
12 changed files with 409 additions and 64 deletions

View File

@ -0,0 +1,15 @@
$(document).ready(function () {
$("#postComment").on("blur", function () {
var comment = $("#commentInput").val();
$.post("challenge3", function (result, status) {
var json;
json = '{' +
' "comment":' + '"' + comment + '"'
'}';
})
})
$.get("challenge3", function (result, status) {
alert("Hello");
})
})