Questions tagged [parents]

In an oriented tree, the parents are the previous nodes before the node of interest. Parent, grandparent, great grandparent etc...

73 questions
2
votes
2 answers

php recursive get parents

I am trying to get jquery.treeview.js to fold out to the just created folder. Think I need an array of "parents" to set class to "open". Other suggestions works with me ;-) (find this a bit too much but cannot find another way to do it. Having an…
osomanden
  • 599
  • 1
  • 10
  • 26
2
votes
1 answer

jQuery parents() with object reference selector

I am trying to detect whether a target element is either a child element, or the same element, that I have as an object reference. I am using the following logic: $("html").on("mousewheel.scroll DOMMouseScroll.scroll",function(e){ …
Curtis
  • 101,612
  • 66
  • 270
  • 352
1
vote
4 answers

jQuery closest(), parents() and parent() affects multiple elements at same DOM level

I am trying to traverse up the DOM to the closest DIV. The markup below is below.
hungerstar
  • 21,206
  • 6
  • 50
  • 59
1
vote
4 answers

Jquery Closest and Parents Not Working with Input and Nested Divs

I have hidden Divs with ".display-link" classes that are two levels up from an input box. When an input (checkbox) is clicked, it should display the hidden link in the parent's previous sibling's wrapper. Or another way to say it is, when an input…
User970008
  • 1,135
  • 3
  • 20
  • 49
1
vote
4 answers

Remove an element from html()?

How can I remove certain element inside html()? For instance, I have this html links,
1
vote
2 answers

Why does jQuery's parents/closest(selector) functions behave differently in IE8?

I have a jQuery script that works perfectly fine in Chrome 11 and Firefox 4, but it appears to be broken in IE8. It appears to be related to the use of the jQuery parents() function with a selector. It does not return any elements when run in…
Rob van Groenewoud
  • 1,824
  • 1
  • 13
  • 17
1
vote
0 answers

Expanding parent's height to its children's heights

Is it possible to expand parents height to its children's height in CSS? Or is there any trick to handle that? Or just JavaScript?
Fferlen
  • 13
  • 4
1
vote
2 answers

JQuery - Problem with selectors (siblings, parents...)

I got a coldfusion query where the result is grouped on country names. With a click on this one, I try to open or close the list under the country. But i cannot work correctly with this siblings and this parents. The result is, if i click on a…
Michel
  • 13
  • 3
1
vote
2 answers

QT - Problems with switching .ui

My problem is that i found a way to switch UIs. But when it switch the UIs the .cpp of the UI will not load. mainmenu.cpp #include "mainmenu.h" #include "ui_mainmenu.h" MainMenu::MainMenu(QWidget *parent) : QMainWindow(parent), ui(new…
D Juelich
  • 41
  • 3
1
vote
1 answer

Process Hangs in Parent Process in C

I have a program that seems to be hanging in the parent process. It's a mock bash program that accepts commands like bash, and then operates them. The code is below. (Note this is simplified code without error checking so it would be more easily…
Kurt Anderson
  • 134
  • 1
  • 10
1
vote
1 answer

jQuery parents (nested divs) change class

I'm trying to learn jQuery I want that, when I hover a children, he changes (rose in the image) the class of parents (XI). I believe that must be something like that $(this).parent().addClass("XI"); You can copy and save it near jQuery
speciale
  • 7
  • 1
  • 4
1
vote
3 answers

how to use List webdriver

I am creating an automatic test for some webs and I'm using WebDriver, TestNG and code that is written in Java. On the page is shown register of categories, in parentheses is number of auctions and i need to get this number as variable. I use this…
Keliimek
  • 155
  • 1
  • 1
  • 10
1
vote
1 answer

Interesting issues related to how 'cp --parents' works

I've written a short csh script that reads a file, which contains paths to files to be copied, then copies those files to a directory: 1 #!/bin/csh 2 # 3 # This script copies source and executable files modified to solve issues 4 # brought up by…
user3633538
1
vote
2 answers

jQuery how to target the data in these sibling td's?

So when modalLink is clicked I want to grab and save the data values from the other td's inside of this tr and not other tr's …
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
1
vote
3 answers

How to target and remove class from a sibling element?

So if you click on the Red class it should remove the blue_on and green_on classes (if they are being used) form the Blue and Green buttons.
Red
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529