Made Live search is done
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user