1

I have a jquery dynamic table its values comes from the from,to date picker. I need display first two columns free for adding two informations. How can i make it possible. Iam attaching my fiddle here http://jsfiddle.net/uScc2/9/

<table cellpadding="0" cellspacing="1" id="our_table">
    <th id="dte"></th>
    <tr>
    </tr>
    <tr>
    </tr>
</table>
2
  • I'm a bit confused about what you're asking for. Do you want two extra columns in the table for the "for" and "to" dates? Jun 23, 2014 at 9:41
  • i need two columns extra for adding category and number. table starting column is category and next column is number
    – kannan D.S
    Jun 23, 2014 at 9:45

1 Answer 1

1

try this updated fiddle of yours

i simply put these:

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

before looping your data. and these:

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

for the headers

1
  • but some error there. when selecting the date picker range the column repetes
    – kannan D.S
    Jun 23, 2014 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.