1

I trying download PDF through Datatable in Safari browser but .trigger() event is not working. It working properly with chrome and mozilla firefox

Here is HTML code

<a href="javascript:void(0);" id="tablePDF"  class="tableExportOption">  Export as PDF </a>

Java Script

$('#tablePDF').on('click', function(){
        for(var i = 0; i < tables.length; i++){
            var table;
            table = tables[i];
            table.button( '0-0' ).trigger();
        } 
   });

where "tables" is array type of varible where i pushed datatable properties.

Kindly provide solution.

Gyrocode.com
  • 57,606
  • 14
  • 150
  • 185
Saurabh Mehta
  • 228
  • 1
  • 4
  • 15

0 Answers0