Top "Parent" questions

In an oriented tree, the parent is the previous node before the node of interest.

jQuery .parent() select multiple levels up

I have a hierarchy like this: <search> <inner> <input/> <p/> <img/&…

jquery parent
How do I set the working directory of the parent process?

As the title reveals it, we are writing a Unix-style shell utility U that is supposed to be invoked (in …

linux gcc process parent working-directory
D3 highlight selected node, and its links to parent and ancestors in a force directed graph

I would like to highlight the links and nodes to the parent node in a graph when the child node …

d3.js hover parent highlight force-layout
How to appendTo closest div (by class)?

I'm trying to do some jQuery which will find images inside text, wrap the image inside a div and then …

javascript jquery append parent closest
Move files up one folder level

I have a folder called "April reports" that contains a folder for each day of the month. Each folder then …

powershell directory parent file-move
Xpath - How to select parent based on attribute of child?

How do you select a parent based on the attribute of a child? I want to select a div: //*[@id=…

select xpath attributes parent
Binding to a cutom property of the template parent

Q: How do I bind to a custom property of the template parent from a child control's style DataTrigger I've …

wpf templates binding parent findancestor
jQuery: preventDefault on parent link only

SOLUTION: Found a solution. Used parentNode: $('.skaftetopmenu-li > a').click(function(e) { e.preventDefault(); var subid = $(this.parentNode).attr(…

jquery menu parent-child parent preventdefault
get first row (image) of ACF repeater field

I'm using the ACF plugin on my website. I want to display on one page the first row (an image …

php jquery wordpress parent advanced-custom-fields
How can I prevent an iframe from accessing parent frame?

I've got a page with an iframe. The page and the source of the iframe are in different domains. Inside …

javascript iframe parent same-origin-policy