This commit is contained in:
frederikpyt
2020-08-03 13:50:34 +02:00
3 changed files with 8 additions and 13 deletions
@@ -47,7 +47,6 @@
url: '{{route('feedbacks.search')}}',
data: {'option':$value},
success:function (data) {
console.log($value);
$('tbody').html(data);
},
error:function (data) {
@@ -70,13 +70,16 @@
{{ $users->links() }}
<script>
var url = new URL(window.location.href);
var page = url.searchParams.get("page");
$('#search').on('keyup', function () {
$value = $(this).val();
$checkboxValue = $( "input:checked" ).val();
$.ajax({
type: 'get',
url: '{{route('users.search')}}',
data: {'search':$value, 'isCheck': $checkboxValue},
data: {'search':$value, 'isCheck': $checkboxValue, 'page': page },
success:function (data) {
console.log($checkboxValue);
$('tbody').html(data);