Select stopped working
Select stopped working
In live.datatables.net, we built out an example (linked below) that broke after performing a hard reset of the Chrome browser ("Empty Cache and Hard Reload"). We are wondering why it no longer works after the hard reset.
Steps to replicate the issue:
1) Select all rows with the checkbox located in the header.
2) Click on the Delete Selected Rows button.
3) Check the live.datatables.net Console to see row numbers.
Expected results: Console list 0 to 4999 (one for each row)
Erroneous results after hard refresh of Chrome: Console lists 0-98 (only 99 of the 5000 rows in the table)
http://live.datatables.net/juyuyimo/2/edit?js,console,output
After the hard refresh in Chrome, we are unable to get this to display all rows in the Console. We have tried other browsers, and another computer, but get the same results everywhere.
This question has an accepted answers - jump to answer
Answers
Only a certain number of rows are in the DOM so the selector
.selected
will only find those. Use theselector-modifier
{selected: true}
to get all the selected rows. Updated example:http://live.datatables.net/juyuyimo/4/edit
Also, it is generally better to use the browser's console than the JS Bin console.
Kevin