⬅︎ Back to To $('#foo p') or to $('p', $('#foo'))
See my update in the blog post.
Why not simply: $("#foo").find("p"); The syntax is more clear and readable, and jQuery isn't called twice. Performance wise, they are practically equivalent.
Comment
See my update in the blog post.
Parent comment
Why not simply: $("#foo").find("p"); The syntax is more clear and readable, and jQuery isn't called twice. Performance wise, they are practically equivalent.