remove datatable alerts 1.10v?

0

There is a configuration to remove or hide alerts from Datatables 1.10v,

$('#tabla_repuestos').DataTable( {
   "paging":   false
} );

Example

    
asked by Javier Antonio Aguayo Aguilar 05.04.2017 в 20:21
source

1 answer

1

That error comes out because you have specified twice that #tabla_repuestos is a dataTables something like this:

$('#tabla_repuestos').dataTable( {
    paging: false
} );

$('#tabla_repuestos').dataTable( {
    searching: false
} );

Check the page that tells you that alert give you more reasons why that alert and possible solutions you can do

link

One of them is:

  • Place the options within the same plugin initializer
  • $('#tabla_repuestos').dataTable( {
        paging: false,
        searching: false
    } );
    
  • Destroy the previous table and re-initialize the plugin with the new options
  • table = $('#tabla_repuestos').DataTable( {
        paging: false
    } );
    
    table.destroy();
    
    table = $('#tabla_repuestos').DataTable( {
        searching: false
    } );
    
      

    NOTE:

         

    These alerts can only be removed by modifying the plugin.

         

    If you have modified the plugin by removing the alerts, you will not be able to know which is the reason for the failure in the future and you will be worse off

        
    answered by 05.04.2017 / 20:40
    source