On Oct 3, 2007, at 3:40 AM, Wizzud wrote:


No problem, Matt.

BTW I'm sure you're aware that you can shorten...

if (o.parents().filter('div.unwantedclass').size()==0) { ... }

...to just

if (o.parents('div.unwantedclass').size()==0) { ... }

You can shorten it a bit further still, to just ...

if (!o.parents('div.unwantedclass').length) { ... }

:-)


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



Reply via email to