I adopted the code from this post and made this fiddle. Try clicking the first row, then shift-clicking the last row. If you notice this code does very well, except the last row, the row that you click on, does not get selected. I have been scratching my head on this one. Can anyone help me alter the code so that the multiselect selects the last row too?
Thanks!
try replacing this: if ((shouldSelectRow = id == startID || shouldSelectRow)) {
with this:
if ((shouldSelectRow = id == startID || shouldSelectRow) && (id != rowid)){
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With