Questions tagged [siblings]

The term "sibling" refers to a kind of relationship between two items in a tree structure. Two items have the sibling relationship if they both have the same parent.

The term "sibling" refers to a kind of relationship between two items in a tree structure. Two items have the sibling relationship if they both have the same parent. The sibling relationship is most commonly used in reference to elements in document model objects (DOM's) such as XML documents or HTML documents.

In XPath, a language used to address and locate parts of an XML document, the sibling relationship is directly supported by two axis:

  • following-sibling axis refers to all the following siblings of the context node, and
  • preceding-sibling axis refers to all the preceding siblings of the context node

In addition, two more XPath axis support the sibling concept indirectly:

  • the following axis and
  • the preceding axis
732 questions
0
votes
1 answer

jQuery target every nth sibling of an element

I have following markup:
How can I target the…
itsututa
  • 157
  • 4
  • 7
-1
votes
1 answer

Access ViewModel of sibling control

I am aware there are some similar threads but I am still not sure of the best implementation. The code should be self explanatory - check the comment there. How best to access that VIewModel. part:FontSearchBox is a UserControl without a ViewModel…
Dominic
  • 62,658
  • 20
  • 139
  • 163
-1
votes
1 answer

Data Transfer Between Sibling Components in Angular

I have two sibling components and a parent components. I want to transfer array data in child-two to child-one. parent.component.html
-1
votes
1 answer

Trying to apply property to all sibling elements in div

trying to change opacity of all other siblings of an item (anchor tag which wraps an image) in a div when user hovers over 1 of the items in the div. It partially works but when i hover over an item all siblings on bottom-right of hovered sibling…
-1
votes
1 answer

Simple JS prev-next navigation of innerHTML changes

Given this very simple framework, what are some approaches to replacing the word-list navigation of the innerHTML content with prev/next buttons? I have tried to implement nextElementSibling - if that's the best solution - but it's over my head. If…
user13776066
-1
votes
1 answer

Sibiling value calculate

what else in this code var b1 = 2; $(".column-1").each(function(i, val) { if ($(this).text() == "2019") { $(this).siblings('.column-3').each(function(){ if($(this).text() !==''){ var r…
yuvaraj
  • 45
  • 7
-1
votes
1 answer

Array from siblings comes up one index short

I have a script that on is supposed to read all sibling HTML elements with the class .rect when one of them is clicked, and put them into an array using Array.from($(this).siblings())... and then do something with that array. The problem is, the…
Mentalist
  • 1,530
  • 1
  • 18
  • 32
-1
votes
1 answer

XSLT - How to select the latest formatted date on condition of the attributes of 2 siblings

I was provided an xslt file recently to update and I have never used xslt before. I am trying to select the latest transaction date based on specific attributes of two siblings (ActionType and Status). How would I select a condition based on two…
Bonnie
  • 7
  • 2
-1
votes
1 answer

css sibling limited to parent object

I've got the following issue, with a star rating css example. It's not working when more then one fieldset is added. fieldset.star { box-sizing:border-box; width: -moz-fit-content; width: -webkit-fit-content; width: fit-content; …
-1
votes
1 answer

Display info on hover SCSS/CSS

I'm making a hoverable ul that displays a p element in another div. As there is no parent selector to be had in pure CSS, I'm stuck and cannot figure out how this is supposed to work. Fiddle won't work for some reason(for me), so here is a…
Ja-oon Solo
  • 93
  • 10
-1
votes
1 answer

jQuery Siblings selector not work correctly

I wanna to live search in page and filter match case. Because of that I use :contains to search text in page. At first I want to find .col-3 that match with search text and after that I want to hide other siblings element. Now I understand…
Ehsan Ali
  • 1,362
  • 5
  • 25
  • 51
-1
votes
1 answer

change index of object in array according to Hierarchy at runtime in Unity

How can i change index of an object at runtime? an object's index changing in hierarchy. because I'm using reorderableList in game. you can see at Unity UI Extension asset. when index of an object changing in hierarchy, it will change index at array…
freedom667
  • 29
  • 3
  • 9
-1
votes
1 answer

how to using Scala to get indicated xml node's Sibling node

I want to get the snapshotID according to the indicated snapshotName from the below xml file, that is to say, get the sibling node of snapshotName. the snapshotName is known and unique for each exposedItemList. Is there any methods in scala to…
michael
  • 1
  • 1
1 2 3
48
49