I have a problem with the javascript, I got a js that does the search in the table, but when there are no records it just shows nothing, how do I put a "return" with some phrase when there are no records, I tried a few times but without success. Following:
// Write on keyup event of keyword input element
$("#search").keyup(function(){
_this = this;
// Show only matching TR, hide rest of them
$.each($("#table tbody").find("tr"), function() {
console.log($(this).text());
if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) == -1)
$(this).hide();
else
$(this).show();
});
});