Hacker News new | past | comments | ask | show | jobs | submit login

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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: