I have the following code:
$('#tree1').treed();
I would like every row in my table to be a tree.
But only the first line works.
I'mtryingtousethe "BootStrap TreeView" and nothing
calling this:
No html
<table>
<tr>
<td>
<ul id="tree1">
<li><a href="#">Empresa</a>
<ul>
<li>
<a href="#div" data-url="#"
data-id="link.php"
class="btn-voltar">
Departamento
</a>
</li>
</ul>
</li>
</ul>
</td>
</tr>
<tr>
<td>
<ul id="tree1">
<li><a href="#">Empresa</a>
<ul>
<li>
<a href="#div" data-url="#"
data-id="link.php"
class="btn-voltar">
Departamento
</a>
</li>
</ul>
</li>
</ul>
</td>
</tr>
</table>
Javascript:
$('#tree1').treed();