They are functionally equivalent. There is no difference in behavior between $("selector")
, $(document).find("selector")
and $("selector", document)
.
In terms of performance, some options may be slightly slower than others (since these methods are implemented in terms of others). This, however, is implementation detail and can be changed between releases. Benchmarking a specific release will be for sure.
source share