Filter applies the current selection, while Find searches child elements.

 

$('td').filter(expr) will remove any TDs that don't match the filter
criteria.

 

$('td').find('span') will find spans inside tds.  This is functionally
similar to $('td span');

 

JK

 

  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kynn Jones
Sent: Monday, February 04, 2008 4:04 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] filter vs find

 

Could someone explain to me the difference between filter and find.  Their
descriptions sound very similar to me.  What are the criteria to choose one
over the other?

 

TIA!

 

kynn

 

Reply via email to