Questions tagged [nextsibling]

A read-only property of javascript that return sibling text after target element.

The Node.nextSibling read-only property returns the node immediately following the specified one in its parent's childNodes list, or null if the specified node is the last node in that list.

66 questions
1
vote
1 answer

How to fetch lastChild, firstChild and nextSibling content in JavaScript?

I would like to know how can I fetch the lastChild, firstChild and nextSibling content in JavaScript. This is my sample code:
content 1
content 2
content…
Mohammad Saberi
  • 12,864
  • 27
  • 75
  • 127
1
vote
2 answers

Checking values of 2 different xml documents against each other

I'm working with 2 XML documents, and trying to get a value from one document into the other if a variable is matched. The first XML document is a converted spreadsheet formatted like: VA15
user1748728
  • 55
  • 1
  • 4
1
vote
2 answers

nextSibling ul li ul

i'm not sure but if i understood right js nextSibling focus next node ? So why i get trouble, when i want to select ul in a li ?
    • Some…
TikTaZ
  • 670
  • 1
  • 11
  • 32
1
vote
2 answers

Using XML::Twig, how can I detect the last sibling?

Using Perl XML::Twig, how can I loop on each sibling until reaching the last node ? while (condition_sibling_TWIG, $v) { $v=$v->next_sibling; $v->print; # process $v } Should the condition be ($v != undef) ? thanks
laurentngu
  • 357
  • 2
  • 13
0
votes
2 answers

Value of selected checkbox

I am trying to find the sum of checkbox values (23.75 and 142.75) Poaten Checkbox1: 2012-01-17, Porti, 1.760, 23.75 Checkbox2: 2012-01-17, Kopien, 10.560, 142.55 Checkbox3: 2012-01-17, Honorar, 33.600, 453.60 Checkbox4: 2012-01-17, Telefon, 0.640,…
user727198
  • 89
  • 1
  • 2
  • 11
0
votes
1 answer

Using next_sibling() in PHP Simple HTML DOM Library?

I have a table of data, I want to capture the text inside of the element that immediately follows a element that has a label inside with a title attribute of "label". See the table here:
hhwhy
  • 23
  • 2
  • 4
0
votes
1 answer

How do you grab/affect a specific sibling in CSS or JS

I'm totally new to coding, i'm trying to make a website where when you hover the mouse over a link the the link (a) becomes bigger, but the tricky thing is that i want the hover to affect the sibling right next to the active hover. Right now i'm…
Jules
  • 1
  • 2
0
votes
1 answer

Selenium XPATH selecting next sibling

text_value
for getting text in second span where does below code go wrong? driver.find_element(X_PATH,"*//div[@class='block']/span[1]") For trying by yourself, maybe I write sth…
xlmaster
  • 659
  • 7
  • 23
0
votes
1 answer

Having trouble using Beautiful Soup's 'Next Sibling' to extract some information

On Auction websites, there is a clock counting down the time remaining. I am trying to extract that piece of information (among others) to print to a csv file. For example, I am trying to take the value after 'Time Left:' on this site:…
MyVeblen
  • 11
  • 1
0
votes
1 answer

XML, NextSibling i doNodeAutoIndent. Empty (#9) nodes problem

My code is: XmlDoc := NewXMLDocument; with XmlDoc do Options := Options + [doNodeAutoIndent]; [...] N := Parent.ChildNodes.FindNode('KONTRAHENT'); while N <> nil do begin if N.ChildNodes['ID_KONTRAHENTA'].NodeValue = KontrNr then …
0
votes
1 answer

Map h4 to div siblings in dataframe Beautifulsoup python

I'm scraping a webpage but having trouble mapping the information into a dataframe. There are no tables in the HTML. Here is an example of the HTML: html= [

Event Title

Category 1

A
Marie10
  • 141
  • 3
  • 8

0
votes
1 answer

BS4 Iterate over table elements nextsibling or parent?

I am trying to pull all of the text and links by date in a table and so far can only get one entry (but not correctly as the link is not named correctly). I think nextsibling might work here but perhaps that's not the right solution. Here's the…
wiedhas
  • 57
  • 7
0
votes
2 answers

Get text of next sibling based on text of previous sibling

I have the following HTML:

User

rjbogz
  • 860
  • 1
  • 15
  • 36
0
votes
2 answers

Javascript: My .textContent works, but not my innerHTML

I have a strange problem. In general, when I set a variable as textContent, it shows it, but it doesn't when I set it as innerHTML More precisely Here is the HTML Dynamic…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/innerhtml" class="post-tag grid--cell" title="show questions tagged 'innerhtml'" rel="tag">innerhtml</a> <a href="../../questions/tagged/nextsibling" class="post-tag grid--cell" title="show questions tagged 'nextsibling'" rel="tag">nextsibling</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 09 '17 at 03:23">asked Mar 09 '17 at 03:23</time> <a href="../../users/7016665/atrashintheworld" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/7016665.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="ATrashInTheWorld" /> </a> <div class="s-user-card--info"> <a href="../../users/7016665/atrashintheworld" class="s-user-card--link">ATrashInTheWorld</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">43</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="9 bronze badges">9</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-42438984"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>5</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/42438984/how-to-change-text-in-span-that-is-immediately-after-i-using-jquery" class="question-hyperlink">How to change text in "span" that is immediately after "i" using jquery?</a></h3> <div class="excerpt">I'm trying to change the text on a button in a plugin I am using using jquery. It's outer html is <button value="[[3,1,1488182400]]" data-group="2017-02-27" class="ab-hour"> <span class="ladda-label"> <i class="ab-hour-icon"> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/jquery" class="post-tag grid--cell" title="show questions tagged 'jquery'" rel="tag">jquery</a> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/text" class="post-tag grid--cell" title="show questions tagged 'text'" rel="tag">text</a> <a href="../../questions/tagged/nextsibling" class="post-tag grid--cell" title="show questions tagged 'nextsibling'" rel="tag">nextsibling</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 24 '17 at 12:44">asked Feb 24 '17 at 12:44</time> <a href="../../users/7616978/jay-red-unadkat" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/7616978.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jay Red Unadkat" /> </a> <div class="s-user-card--info"> <a href="../../users/7616978/jay-red-unadkat" class="s-user-card--link">Jay Red Unadkat</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1</li> <li class="s-award-bling s-award-bling__bronze" title="1 bronze badges">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/nextsibling_page=2" rel="prev" title="Go to page 2">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/nextsibling_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/nextsibling_page=2" rel="" title="Go to page 2">2</a> <div class="s-pagination--item is-selected">3</div> <a class="s-pagination--item" href="../../questions/tagged/nextsibling_page=4" rel="" title="Go to page 4">4</a> <a class="s-pagination--item" href="../../questions/tagged/nextsibling_page=5" rel="" title="Go to page 5">5</a> <a class="s-pagination--item" href="../../questions/tagged/nextsibling_page=4" rel="next" title="Go to page 4"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>
BillyBob12345