Project_Fish/static/script.js
Eljakim Herrewijnen 2186c273dd initial commit
2021-11-07 12:56:41 +01:00

22 lines
618 B
JavaScript

function GetServices(){
$.ajax({
type: "POST",
url: "/GetServices",
data: JSON.stringify({
"nummer": document.getElementById('nummer_input').value,
}),
contentType: "application/json",
dataType: 'text json',
success: function(response) {
document.getElementById('resultblock').innerHTML = response
},
error: function(error){
console.log(error);
}
// success: function(result) {
// console.log("aa");
// console.log(results);
//
// }
});
}