I am trying to export a dynamic list for the excel / notepad / notepad ++ / word. I looked at ways to ax the table, but it does not solve my problem. My list includes many lists (variable) and the value I want to export is the value of input from type text (value_to_export) How can I export the prices of all these lists? Thank you
& lt; Ul & gt; & Lt; Li id = "0" square = "list" & gt; & Lt; Input type = "checkbox" class = "" id = "" value = "" & gt; & Lt; Input type = "text" id = "" title = "" class = "" value = "value_to_export" & gt; & Lt; / Li & gt; & Lt; / Ul & gt; Instead of li you can use the HTML table:
.
table2excel is a simple yet useful jQuery plugin which allows to export HTML table data into an Excel file.
& lt; Script src = "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "src / jquery.table2excel.js" & gt; & Lt; / Script & gt;
- Create an 'Export' button to manually export table data to Excel file . Alternative.
& lt; Button & gt; Export & lt; / Button & gt;
- Call the plugin and it is done on the table.
$ (" button ") (function () {$ (" # table2excel "). Table2excel ({// exclude the outgoing CSS class : ".noExl", name: "Excel document name"})}}
& lt; tr class =" noExl "> & lt; th & Lt; / l & gt; & lt; th & gt; column header & lt; / th & gt; & lt; th & gt; column header & lt; / th & gt; & lt; th & Gt; column header & lt; / th> & lt; / tr & gt;
No comments:
Post a Comment