On Apr 6, 2007, at 8:53 AM, bmckenzie wrote:
 $("#someParent").children().index(someElement)  !=  -1 ;

Cool, Bruce!

you could also come at it from the other direction:

if ( $('#someChild').parent('someElement').length ) {
  //do something
};





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




Reply via email to