Howto save row selection and highlighting if page refresh?

Howto save row selection and highlighting if page refresh?

hawkmasterhawkmaster Posts: 56Questions: 20Answers: 0

Hello

I can highlight and select a row if you click on it like in example.

http://datatables.net/examples/api/select_single_row.html

But how can you store the selected row and the aData value if the page is refreshed?
I want that the table is with the same row highlighted after refresh.

thanks a lot
best regards
hans

Answers

  • rhinorhino Posts: 80Questions: 2Answers: 17
    edited July 2014

    One way might be to save the row selections in javacript's sessionStorage object (or localStorage if you want them to be able to close the page and browse back again)

    Here's an example using sessionStorage

This discussion has been closed.