JQuery Dynamic Table Column Call

I have a dynamic jquery table, its values ​​come from the from, to date command. I need to display the first two columns for free to add two data. How can i do this. Here I attached my fiddle http://jsfiddle.net/uScc2/9/

<table cellpadding="0" cellspacing="1" id="our_table">
    <th id="dte"></th>
    <tr>
    </tr>
    <tr>
    </tr>
</table>
+4
source share
1 answer

try this updated script

i just put these:

 $('#our_table tr.td_rows').append('<td>CATEGORY HERE</td>');
 $('#our_table tr.td_rows').append('<td>NUMBER HERE</td>');

before looping data. and they:

newHeaders += '<th>COLUMN</th><th>NUMBER</th><th>' + between[i] + '</th>';

for headlines

+2
source

Source: https://habr.com/ru/post/1545642/


All Articles