I need to associate to a variable three divs that are in a section, and that in turn one is inside another.
<section class="flujo-eventos">
<div class="uno">
1
<div class="dos">
2
<div class="tres">
3
</div>
</div>
</div>
</section>
The problem that I want to save them in a variable from my JavasCript file, but after doing it; I print said variable on the console and what it brings me is an empty NodeList. What am I doing wrong? This is my js document:
const $divsEventos = document.querySelectorAll('eventos-flujo div');
console.log($divsEventos)
//NodeList []length: 0[[Prototype]]: NodeList