1
I have the following code:
$('#tree1').treed();
I would like every row of my table to be a tree.
But only the first line works.
I’m trying to use the "Bootstrap Treeview" and nothing
calling it so:
In 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();
updated the image of the question
– adventistaam
Caraca! That’s right. Exactly. Thank you very much! I was almost giving up rsrs
– adventistaam