ludo / jquery-treetable

jQuery plugin to show a tree structure in a table
http://ludo.cubicphuse.nl/jquery-treetable
GNU General Public License v2.0
741 stars 278 forks source link

when data-tt-parent-id is set string type,it is not working #170

Closed weiwangda2014 closed 8 years ago

weiwangda2014 commented 9 years ago

when data-tt-parent-id is set string type,it is not working !

the html code:

<!--<table>
    <tr data-tt-id="Amms">
        <td>Parent</td>
    </tr>
    <tr data-tt-id="Bams" data-tt-parent-id="Amms">
        <td>Child</td>
    </tr>
    <tr data-tt-id="Cmdfds" data-tt-parent-id="Bams">
        <td>Child</td>
    </tr>
</table>-->

the jquery code:
<!--<script type="text/javascript">
    $(function () {
        $('.tablelist').treetable({ expandable: true });
    });
</script>-->
ludo commented 8 years ago

This code works fine for me?