Answers for "set datatable with jquery success return value"

0

set datatable with jquery success return value

success: function(respone){
              table.destroy(); //destruy allow to reinitialize
              const res = JSON.parse(respone); // parse if got encode in server
              const response_object = res.data; 
    // data:{['record','record'],['record','record']...}	

              console.log(response_object);

              $('#table_id').DataTable( {
                data: response_object,
               // datatablesetting....
            } );
            }
Posted by: Guest on October-04-2021

Code answers related to "set datatable with jquery success return value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language