I been trying to find a way to loop through each rows of a table using foreach loop. is that something possible?
I am not asking for an alternative of foreach loop, I am wondering if I can loop using foreach, I know I can do other ways, so please keep that in mind when trying to answer.
I have tried the followings:
var table_rows = document.getElementById("table_information_layout_id");
table_rows.forEach(function (val){
}
var table_rows = document.getElementById("table_information_layout_id").rows;
table_rows.forEach(function (val){
}
None of the above works, as I get the error UncaughtTypeError table_rows.foreach is not a function