The code snippet below was created by me...
<script>
$('#spielAuswahl').on('change', function(e){
console.log(e);
var spielID = e.target.value;
//ajax
$get.('/spieler?spielID=' + spielID, function(data){
console.log(data);
});
});
</script>
I encountered the following problem...
Uncaught SyntaxError: Unexpected token
$get.('/spieler?spielID=' + spielID, function(data){
Could this issue be caused by a lack of Ajax implementation in my project? If so, I am using Laravel. How can I integrate Ajax into Laravel? Are there any convenient online libraries available for quick and easy Ajax implementation?