different columns number

different columns number

giorggiorg Posts: 4Questions: 1Answers: 0

hi,

I have a table like this:

<th><td>col 1</td><td>col2</td></th>
<tr><td colspan="2">subheader</td></tr>
<tr><td>val 1</td><td>val 2</td></tr>

If I remove the subheader row, works perfectly, else in console I see this error:

nTd is undefined. I understand it must have to do with columns number, but how can I solve this?
thanks

Replies

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @giorg ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • giorggiorg Posts: 4Questions: 1Answers: 0

    Hi @colin,

    thanks for your answer. Apparently datatables don't support table body with colspan yet, that must be my problem...

This discussion has been closed.