get data from child row

get data from child row

OhunjonOhunjon Posts: 9Questions: 5Answers: 0

hello every one! please help me. in thi s situation, i have table with full data (from api) and some rows has nested table(thats eddition info). I am using DataTable. but it is not working with nested table ? and how can I get data nested child?

* 
* <table id="example" class="table table-striped table-inverse table-bordered table-hover" cellspacing="0" width="100%">
*       <thead>
*         <tr>
*          ............
*         </tr>
*       </thead>
*      
*         <tbody>
*           <tr>
*             <td>Tiger Nixon</td>
*             <td>System Architect</td>
*             <td>Edinburgh</td>
*             <td>61</td>
*             <td>2011/04/25</td>
*             <td><table>
*                   .............
*                  </table>
*             </td>
*           </tr>
*           .........
*           .........
*            <td>Tiger Nixon</td>
*             <td>System Architect</td>
*             <td>Edinburgh</td>
*             <td>61</td>
*             <td>2011/04/25</td>
*             <td>2123123</td>
*          </tbody>
* </table>
* 
*  <script type="text/javascript">
*         $(document).ready(function() {
*   $('#example').DataTable({
* 
* 
* 
* });
* });
*       </script>
* 

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @Ohunjon ,

    That shouldn't be a problem, see example here.

    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

  • OhunjonOhunjon Posts: 9Questions: 5Answers: 0

    thank you! @colin

This discussion has been closed.