x103/J2_1.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
td{
border: 1px solid black;
}
</style>
</head>
<body>
<script src="ajax.js"></script>
<input>
<table id="leerlingen">
</table>
<script>
ajax("J2_2.php", "leerlingen")
document.querySelector("input").oninput = function(){
console.log(true)
ajax("J2_2.php?achternaam=" + document.querySelector("input").value, "leerlingen")
}
</script>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse