3 ms·
For some reason, the second block of code has stopped working for me as keyfield-value no longer has any visible innerHTML and it returns undefined. The followi
by azalemeth 5y ago
For some reason, the second block of code has stopped working for me as keyfield-value no longer has any visible innerHTML and it returns undefined. The following is a less elegant, but equally effective, way of doing the same thing:
myString=''; myKeys=document.getElementsByClassName('keyfield-value'); for(ix=0; ix<myKeys.length; ix++){ myString = myString+ myKeys[ix].innerHTML)+"\n"; } console.log(myString)