Hy, I have a simple one page website, made from several sections. When I write a script inside of the html file it correctly gives me the number of sections. The code is this:
var number = $("#sections li").length
console.log(number);
But when I run the exact same code from a outer file, it doesn't work.
Any ideas?