FuriosoJack / TableHTMLExport

Plugin de Jquery que exporta una tabla HTML a JSON, CSV, TXT, o PDF y forzar al navegador a descargar el archivo generado.
MIT License
14 stars 17 forks source link

tableHTMLExport is not a function #6

Open itstaheri opened 2 years ago

itstaheri commented 2 years ago

My code :

html:

 <table class="table" id="tblData"> ......

 <button id="pdf" > PDF </button>

js:

<script src="~/js/tableHTMLExport.js"></script>
<script>

    $("#pdf").on("click", function () {
      $("#tblData").tableHTMLExport({ type: "pdf", filename: "sample.pdf" });
    });

</script>

when i click on button for export pdf or other... I get this error , whats the problem!? // (index):473

   Uncaught TypeError: $(...).tableHTMLExport is not a function
at HTMLButtonElement.<anonymous> ((index):473:21)
at HTMLButtonElement.dispatch (VM125 jquery.min.js:2:43090)
at v.handle (VM125 jquery.min.js:2:41074)

//