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

javascript 1.8:

$("li.menu_item span").map(function(x) x.innerHTML)

for that particular exaple, you could also steal pluck() from Prototype.js:

$("li.menu_item span").pluck("innerHTML")



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

Search: