Semi fix live search

This commit is contained in:
2020-07-27 13:07:19 +02:00
parent 9c17623518
commit 2dd20ac85a
7 changed files with 87 additions and 8 deletions
@@ -54,11 +54,15 @@
$value = $(this).val();
$.ajax({
type: 'get',
url: '{{URL::to('contacts')}}',
url: '{{route('contacts.search')}}',
data: {'search':$value},
success:function (data) {
$('tbody').html(data);
console.log(data);
console.log($value)
},
error:function (data) {
console.log(data);
}
});
})