rows() returns length of 1 for no rows?
rows() returns length of 1 for no rows?
ahc
Posts: 5Questions: 3Answers: 0
Hi,
I am trying to get specific rows of my table, using https://datatables.net/reference/api/rows() with a row selector parameter (e.g. myTable.rows('.myRows'); ). However, it seems like if no table rows are found, the API instance returned still has a length of 1, which is also the length if 1 row is found. Is there a way to distinguish these two cases from each other?
Thanks.
This discussion has been closed.