Data search

I need to find a DataTable and return true if a specific "row" is found in the table. As a starter I have this . But it continues to return true, and the value is always "found", even if nothing like this is in the table. What am I doing wrong?

if(table.columns().search("ddd"))
  {
    alert("found");
    return true;
  }
  else
  {
    alert("not found");
    return false;
  }
+4
source share
1 answer

In the Datatable documentation you can see this Link . According to this link, the search result will be a string, if it is searchable, and if there is no match, it will return an empty string.

, , . , , keyup. ?

0

Source: https://habr.com/ru/post/1669229/


All Articles