Cleaned up script.php

This commit is contained in:
Yannic 2025-09-25 18:12:40 +02:00
parent 51097f79c3
commit 3fc3a50699
2 changed files with 4 additions and 7 deletions

View file

@ -255,6 +255,6 @@
<br> <br>
<div id="result"></div> <div id="result"></div>
<?= include "script.php" ?> <?php include "script.php" ?>
</body> </body>
</html> </html>

View file

@ -1,5 +1,3 @@
<!DOCTYPE html>
<html>
<script> <script>
document.getElementById('bookForm').addEventListener('submit', function (e) { document.getElementById('bookForm').addEventListener('submit', function (e) {
e.preventDefault(); // prevent normal form submission e.preventDefault(); // prevent normal form submission
@ -192,4 +190,3 @@ document.querySelector("#borrowerSelect").addEventListener("change", function ()
} }
}); });
</script> </script>
</html>