I'm currently working on the following code snippet:
var transitionsSettingsClass = document.getElementsByClassName("transitionsSettings");
var myLenght = transitionsSettingsClass.lenght;
alert(myLenght);
For some reason, I'm receiving an undefined alert. However, if I modify it to:
alert(transitionsSettingsClass[0])
then the result is clear. My goal is to use this script to set an attribute in every element with the classname transitionsSettings, and I need the length of the array for a loop (for) iteration.