⬅︎ Back to To $('#foo p') or to $('p', $('#foo'))
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.
See my update in the blog post.
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.
Replies
See my update in the blog post.