I found this really simple accordion menu that was perfect for my project:
w3schools.com. I added it to my MasterPage and all was well until I put the JavaScript in:
Code: Select all
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].onclick = function(){
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
</script>
Flare displays: "Warning: Invalid syntax on or inside " tag ..." I've tried systematically deleting the quotes. I also commented out the script and built the output, then removed the comment tags from the output and the menu works fine. But Flare won't build with the Script as is. Any ideas?