-1
I searched the site before asking that question and I think what else looks like my problem is this: Get values from a dynamic list
But it didn’t suit me, I believe I want to do it is something simple I’m starting now and I’m layman, well I populate an html list with the contents of my bank, I managed to get the name of the content inside the list using this:
var listClientes = document.getElementById('sortable12').innerText;
Turns out what I really needed was the amount of items on the list and not their respective name, someone has an idea of how to proceed?
My HTML:
<!--LISTA 01-->
<label style="float:left; margin-top:80px; margin-left: 40px; color: green">Disponiveis:</label>
<ul id="sortable11" class="connectedSortable ui-sortable" style=" margin-top: 100px"> </ul>
<!--LISTA 02-->
<label style="float:right; margin-right: 390px; margin-top:-360px; display:block; color: red">Ultilizados:</label>
<ul id="sortable12" class="connectedSortable ui-sortable" style="float:right; margin-left:500px; margin-top:-340px">
<li class="ui-state-default ui-sortable-handle">Item 6</li>
<li class="ui-state-default ui-sortable-handle">Item 7</li>
<li class="ui-state-default ui-sortable-handle">Item 8</li>
<li class="ui-state-default ui-sortable-handle">Item 9</li>
<li class="ui-state-default">Item 10</li>
</ul>
Post HTML, it’s easier to help
– Denis Rudnei de Souza
Edit! my html this way because I am using Drag and Drop, the list 01 is being loaded by the bank already the list 02 is only a test but the idea is to be empty. However I can not bring the amount of result in the 02 list nor with the examples, I stand by and thank you.
– Apocryphoon
Do not post code photo on some devices is difficult to read and cannot copy to a reply. Read No questions asked manual | Do not post code as image
– Augusto Vasques