Answer the question
In order to leave comments, you need to log in
How to display the received information with a div in javascript?
I counted in Javascript the number of "li" elements in a block with a certain "id" like so:
document.write(document.getElementById('111').childNodes.length);
<div id='result'></div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question