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
5 answers

Can't get the siblings value within a html table with jQuery

I have a 5 x 5 table. Each cell is an asp.net textbox. I want to get al the 5 textbox values of the last row with a non empty textbox. For example: This should get HELL O MY FRIE ND But I get all the values BUT the last (ND). I don't know why.…
anmarti
  • 5,045
  • 10
  • 55
  • 96
0
votes
2 answers

Is there an ALL siblings selector?

Possible Duplicate: CSS all inclusive sibling selector CSS3 has an adjacent sibling selector +, and a general sibling selector ~. Is it possible to select all siblings? (the "general" selector actually only selects the following siblings) For…
McGarnagle
  • 101,349
  • 31
  • 229
  • 260
0
votes
0 answers

How to select a run of sibling elements with jQuery?

I'm working on a userscript to interact with a 3rd-party site so I have no control over how it does its layout. It has a list but what is visually each element in the list is not wrapped in a single element but represented in the DOM as a "run" of…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
0
votes
4 answers

jQuery get ids of siblings

I'm trying to get ids of siblings.
  • a1
  • a2
  • a3
  • a4
When I click on one of the li's, I want to select all sibling ids separated by comma. Ex. I click on #a2…
ialphan
  • 1,241
  • 1
  • 17
  • 30
0
votes
1 answer

Regular expression test (or match) an object and its siblings using javascript and/or jQuery

Using javascript and/or jQuery, how do I test/match an object AND ALL of it's siblings? I'm not a programmer, so take it easy on me. Thanks in advance. :) // Make an array of the checked inputs var aInputs = $('.listings-inputs…
user1003757
  • 41
  • 2
  • 8
0
votes
1 answer

Jquery Returning values to original

So my script works perfectly, but here is the issue, I have buttons (Sprite action here) that are 40px height, but the top 20 only shows perfectly. When you click the button ie img the bottom 20px show perfecto! but... Issue, i included in my script…
Cam
  • 1,884
  • 11
  • 24
0
votes
4 answers

Replace siblings in an xml file using python

I would like a way of changing the status of watched movies in YAMJ's xml files. I can provide baseFilenameBase, fileLocation and fileURL. I nned to change the two watched eleiments to true.
jhmiller
  • 99
  • 1
  • 8
0
votes
1 answer

Find XML Element by their Sibling

How can I find the sibling of an XML Element with Visual Basic? Let's say I have: Welcome! Antonios Welcome! How can I assist you?
Antonios
  • 7
  • 1
  • 5
0
votes
2 answers

Hide only children of parent element

I am having trouble with my hide_fields() function. I am trying to hide all 'row-layout-field'
-s and then show certain divs that are within the same parent() parent() as a , certain…
beefchimi
  • 1,308
  • 2
  • 17
  • 34
0
votes
2 answers

Creating hover and current page states with sibling elements

I have animated nav buttons and can actually set everything with css with the exception of one element. An arrow. Here's the actual live page. http://sclarkstudio.com/testing/mm/index.htm I'm trying to make the arrow visible and static on the…
Scott
  • 1
  • 4
0
votes
3 answers

Javascript/Jquery: Cannot target Sibling Node in Table

I have a function that hides/shows a table by clicking on it's header which is contained in a tag. When clicked the table hides and all that is left is the header, which, by clicking again, can un-hide the table. I have multiple tables and…
0
votes
2 answers

removeClass from links in separated div container

I'm having a couple problems trying to add/remove a class from links and their siblings. I have 3 groups of links contained in
...
. I was able to get the jQuery to add and remove the 'Selected" class from the…
xxstevenxo
  • 661
  • 3
  • 12
  • 27
0
votes
3 answers

Jquery siblings restrictions

I have a form that has 10 or so dropdown menus. Two of these dropdowns, are different from the others, and I'm trying to figure out how to not let the user have the same value in each of these dropdowns. For example,