PHPStorm is telling me that
jQuery('#myform button[type="submit"]')
is a jQuery inefficient usage, and suggests that this is more efficient:
jQuery('#myform').find('button[type="submit"]')
Do you agree?
PHPStorm is telling me that
jQuery('#myform button[type="submit"]')
is a jQuery inefficient usage, and suggests that this is more efficient:
jQuery('#myform').find('button[type="submit"]')
Do you agree?
According to jsperf on Chrome (for this very specific example), looks like that's actually backwards.