var eval_table = document.getElementsByClassName("evaluation_table"); console.log(eval_table);
This is displayed as:
[item: function, namedItem: function]0: table.widefat.fixed.evaluation_table length: 1 __proto__: HTMLCollection
However, when I try to get the length of eval_table , eval_table.length , it returns 0 . I used to use this approach, before I had no problems with this approach. Is there something wrong with what I'm trying to achieve above?
source share