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
0
votes
3 answers

How to remove the text after input field using jquery?

How can I remove the text after the input in jQuery? jQuery
year
Question User
  • 2,093
  • 3
  • 19
  • 29
0
votes
1 answer

How the next sibling works?

I'm new on js and this is the first time I'm using the nextSibling selector, I'm trying to implement a dropdown menu. In the code below, I need to display the sub-menu when I click on a menu item. How can I fix this? var…
user6768630
0
votes
6 answers

How to get the inner Text inside span using javascript?

The link is here; http://heart.bmj.com/content/early/2016/08/10/heartjnl-2016-310003.long I have; Original article :
user6468132
  • 383
  • 1
  • 5
  • 18
0
votes
1 answer

How to JSOUP parse html following the nextSibling?

Have HTML:
Text0 23
Text1 173
yar1k
  • 21
  • 2
0
votes
1 answer

How to find all next siblings from a particular class using css selectors

I want to scrape this website Hotel Association Data and need help for the css selector. If you see the below image, I am trying to extract address from here using a css selector. Data I want to scrape : 20 West 29th Street and New York, NY…
python
  • 4,403
  • 13
  • 56
  • 103
0
votes
2 answers

Performing split on node returned by nextSibling returns TypeError undefined is not a function

I am trying to grab a piece of text next to an element that I can select with its class and then perform a split(" ") on it, but I get a TypeError: undefined is not a function. I think this is because it is not a string, so when I try to convert it…
Rico Clark
  • 351
  • 1
  • 4
  • 11
0
votes
1 answer

Why is the nextSibling method in javascript not working properly

I have this code that is setting innerHTML to the sibling element of input type [email] but not to the sibling element of input type [name].Here is the markup.
0
votes
1 answer

Php DOMNode travelling

I'm trying to parse an HTML document, and get text values from tags, but the problem is that the tags don't contain any special attributes or have some id's to target them. The only thing that can be anchored to - is another static text, used as…
Andrian
  • 7
  • 1
0
votes
2 answers

How can i find an element by xpath text() and the second cousin of this element?

I use Htmlunit in java. I need to find an element by text(), and i need the second cousin of this element (i think). I tried this: HtmlElement element = page.getFirstByXPath("//*[text() =…
Roland08
  • 3
  • 2
0
votes
1 answer

this.nextSibling in function.js

I'm using this code in my html page. when clicking on the image "photo_medias", the image disappears and the video iframe displays. It works fine, but I would like to make a jQuery function with this code. I don't want to have JavaScript inside my…
mmdwc
  • 1,095
  • 6
  • 27
  • 53
0
votes
0 answers

Issue in nextSibling of node when next sibling is null

I am trying to add a node after the first child node as well as after the last child node of body tag. I tried it in jsfiddle.com: http://jsfiddle.net/satishkmr/7MM52/3/ A condition is checked in between for text node. …
Satish
  • 1,315
  • 4
  • 15
  • 22
0
votes
1 answer

AngularJS: what is the relationship between an isolate scope and transclude scope for a collection of the same directive

A small question about $$nextSibling. I've seen a lot of articles similar to this one that say that the relationship between a directive with isolate scope and transclude scope is through $$nextSibling. This seems to be correct if there is only one…
nempnett
  • 225
  • 2
  • 7
0
votes
2 answers

Javascript this.firstChild .nextSibling Not Working in Internet Explorer

In the following markup, the "tip1"'s visibility is supposed to change from 'hidden' to show when the parent is moused over. Then when "tip1" is clicked, "line1" is supposed to appear. It works fine in Firefox and Chrome but, of course, not in…
0
votes
4 answers
0
votes
1 answer

Javascript nextSibling keep both objects, current and next. Is it possible?

I am working with a table and i need to work with current and the next row. My function looks like this: function test(row) { alert(row.id); //it gives me the current row id, it works. nextrow = row.nextSibling.nextSibling; //not sure why,…
Darksody
  • 481
  • 1
  • 4
  • 15