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

Just curious, is there any reason you used `$.each` instead of `$(".down.arrow").each`?


Protip: you don't even need an each() at all[1].

So the above could be written:

$(".down.arrow").click();

1. http://jsfiddle.net/k6FvQ/


seems like the more functional-style way of doing it




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

Search: