How to find the parent element
Thu, 12/20/2007 - 03:50 — sgrover
Once we have a reference to an HTML element, sometimes we need to know what element contains it. We can get this information from the DOM tree by asking for the element's parent.
var pid = $("#mytarget").parent().attr("id");
- Printer-friendly version
- Login or register to post comments

hello
You are absolutely right !!!