UNPKG

jquery-tableexport

Version:

This is a simple jQuery plug-in that allows exporting html tables to: CSV, XLS, TXT, SQL.

19 lines (13 loc) 257 B
function exportTo(type) { $('.table').tableExport({ filename: 'table_%DD%-%MM%-%YY%', format: type, cols: '2,3,4' }); } function exportAll(type) { $('.table').tableExport({ filename: 'table_%DD%-%MM%-%YY%-month(%MM%)', format: type }); }