I am using Nestable.js to make a list of products with byproducts so that it is displayed as a tree. I do not have any errors in the console and I do not see where my error may be, but once everything is configured, the list appears like this:
- Product
- Byproduct
When it should come out like this:
This is the structure I have for the list:
<div class="dd" id="nestable2">
<ol class="dd-list>
<li class="dd-item>
<div class="dd-handle>Producto 1 </div>
<ol class="dd-list>
<li class="dd-item>
<div class="dd-handle>Subproducto 1 </div>
</li>
</ol>
</li>
</ol>
</div>
And the js:
$(document).ready(function(){
$('#nestable2').nestable();
});
Thanks in advance.