Made Live search is done

This commit is contained in:
2020-07-27 16:03:49 +02:00
parent f1fb73beec
commit b9633d36a9
12 changed files with 296 additions and 5 deletions
@@ -16,7 +16,7 @@
<form method="post" action="{{ route("users.store") }}">
@csrf
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg på navn,email,telefon"></input>
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg på Navn, Email, Telefon"></input>
</form>
@@ -50,7 +50,6 @@
<script>
$('#search').on('keyup', function () {
//alert('Test');
$value = $(this).val();
$.ajax({
type: 'get',
@@ -58,7 +57,6 @@
data: {'search':$value},
success:function (data) {
$('tbody').html(data);
console.log(data)
},
error:function (data) {
console.log(data);