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.