Jeg er ikke sikker
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg på Navn, Email, Telefon"></input>
|
||||
</form>
|
||||
|
||||
<p></p>
|
||||
|
||||
</div>
|
||||
<table class="tbl mt-2">
|
||||
@@ -55,7 +56,14 @@
|
||||
url: '{{route('contacts.search')}}',
|
||||
data: {'search':$value},
|
||||
success:function (data) {
|
||||
$('tbody').html(data);
|
||||
if(data == $value){
|
||||
$('tbody').html(data);
|
||||
$("p").hide();
|
||||
}else{
|
||||
$("p").show();
|
||||
$("p").html("Det er ingen data der matcher din søgning.");
|
||||
}
|
||||
|
||||
},
|
||||
error:function (data) {
|
||||
console.log(data);
|
||||
|
||||
Reference in New Issue
Block a user