On Feb 15, 2007, at 12:02 , Mahadewa wrote:
> var parent = $(this).parents('div.parent');
>
> Is this not the same as to say: "Select element (of 'this') which
> parent is
> 'div.parent' " ?
Nope, not the same. The way to read this is:
- Wrap the DOM element "this" in a jQuery object.
- Find all parents of the element that match "div.parent".
--
Jonathan Chaffer
Technology Officer, Structure Interactive
(616) 364-7423 http://www.structureinteractive.com/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/