I'm trying to count the section tags on a page but whenever this script runs it returns a 0. Any ideas?
var sectionCount = $( "section").length;
console.log(sectionCount);
The HTML I'm counting from is as follows:
<body>
<div class="container">
<section class="slide">1</section>
<section class="slide">2</section>
<section class="slide">3</section>
</div>
</body>