Hacker News new | ask | show | jobs
by chengyinliu 4621 days ago
Just curious, is there any reason you used `$.each` instead of `$(".down.arrow").each`?
2 comments

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