TypeError: nTd is undefined

TypeError: nTd is undefined

MARCOJULIOARGMARCOJULIOARG Posts: 1Questions: 1Answers: 0

Hello, im getting an error while showing a table. Previous answers focus on the difference between column number in header
and in body. But ive counted the column numbers and its the same. I already tried showing just one column and still give error. Thank you in advance

            <table id="object_list" class="display" style="width:100%">
                <thead>
                    <tr>
                        <th>Municipio</th>
                        <th>Estaciones</th>
                        <th class="magna" style="color: white;">Promedio</th>
                        <th class="magna" style="color: white;">Maximo</th>
                        <th class="magna" style="color: white;">Minimo</th>
                        <th class="premium" style="color: white;">Promedio</th>
                        <th class="premium" style="color: white;">Maximo</th>
                        <th class="premium" style="color: white;">Minimo</th>
                        <th class="diesel" style="color: white;">Promedio</th>
                        <th class="diesel" style="color: white;">Maximo</th>
                        <th class="diesel" style="color: white;">Minimo</th>
                    </tr>
                </thead>
                <tbody>
                
                    <tr>
                        <td><a href="/geo/municipios/27001/" target="_blank">Balancán</a></td>
                        <td>5</td>
                        <td>19.2</td>
                        <td>20.1</td>
                        <td>20.8</td>
                        <td>19.6</td>
                        <td>20.1</td>
                        <td>21.3</td>
                        <td>19.1</td>
                        <td>20.1</td>
                        <td>20.6</td>
                    <tr>
                
               
                </tbody>
            </table>

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    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

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921

    Looks like line 31 is incorrect. Should be </tr>.

    Kevin

This discussion has been closed.