this question has answer here:
- jquery find versus context selection 4 answers
is there difference between two? ever yield different results?
$parent.find(selector) vs. $(selector, $parent) where $parent - jquery object.
it's same thing. when pass in optional context parameter .find() method, it's converted $(selector, $parent)
http://api.jquery.com/jquery/#jquery-selector-context
internally, selector context implemented .find() method, $( "span", ) equivalent $( ).find( "span" ).
so, no - should never yield different results.
Comments
Post a Comment