Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Selecting each one of those things and being redirected was killing me.

Here's a shortcut:

problems = document.getElementById('problems'); for(i = 1; i < problems.length; i++) { console.log(problems[i].innerHTML + ': ' + problems[i].value) }



thank you for solving my most pressing 1st world problem.


Or, Right Click > View Page Source




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

Search: