Answers for "how to go back to the same page in data table after refreshing"

Go
0

how to go back to the same page in data table after refreshing

$(document).ready(function() {
    $('#example').dataTable( {
        "bStateSave": true,
        "fnStateSave": function (oSettings, oData) {
            localStorage.setItem( 'DataTables', JSON.stringify(oData) );
        },
        "fnStateLoad": function (oSettings) {
            return JSON.parse( localStorage.getItem('DataTables') );
        }
    } );
} );
Posted by: Guest on September-24-2020

Code answers related to "how to go back to the same page in data table after refreshing"

Browse Popular Code Answers by Language