Fix live search again
This commit is contained in:
@@ -56,14 +56,7 @@
|
||||
url: '{{route('contacts.search')}}',
|
||||
data: {'search':$value},
|
||||
success:function (data) {
|
||||
if(data == $value){
|
||||
$('tbody').html(data);
|
||||
$("p").hide();
|
||||
}else{
|
||||
$("p").show();
|
||||
$("p").html("Det er ingen data der matcher din søgning.");
|
||||
}
|
||||
|
||||
$('tbody').html(data);
|
||||
},
|
||||
error:function (data) {
|
||||
console.log(data);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<form method="post" action="{{ route("users.store") }}">
|
||||
@csrf
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg efter navn"></input>
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg efter navn,email,tf"></input>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user