Which jQuery selector is more efficient with .find() -


does tag name hurt or help?

1) $content.find('[name=foo]')

or

2) $content.find('input[name=foo]')

i wrote quick jsperf test, it's same.

both pretty slow (jquery quite slow anyway).

i tested $.find() method 2 weeks ago. it's habit use it, it's pretty efficient.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -