Raja Manickam
Raja Manickam

Reputation: 1903

How to find out the certain page number is exists in the jquery datatable?

I want to know whether there is any method to find out the certain page number is exists in the jquery datatable

Upvotes: 0

Views: 104

Answers (1)

Praveen Kumar Purushothaman
Praveen Kumar Purushothaman

Reputation: 167220

Use this:

$(table).datatable().page.info().pages

Use this function:

function is_page_exists(table, pagenum) {
  return table.page.info().pages > pagenum;
}

Upvotes: 1

Related Questions