Questions tagged [jquery-traversing]

Functions in the Traversing category in the jQuery JavaScript library allow for the selection and manipulation of element(s) based on the function description.

A complete list of supported traversal functions is available at jQuery's API documentation: Traversing. Subcategories of this category are Filtering, Tree Traversal, and Miscellaneous Traversal.

Functions like .children(), .prevAll() and .each() are included in this category.

162 questions
0
votes
4 answers

jquery traverse through row getting span class and title

I have a table each row has an id and several td's containing spans e.g myfirstnamemysurnamemystreet
Barry Hamilton
  • 943
  • 3
  • 15
  • 35
0
votes
2 answers

jQuery Traversing - best method to use?

I've been aiming to do something simple..but not sure of the best approach. I've ready through jQuery documentation but as this place offers sound advice - I'll punt the question here. It's basically traversing. Say I have this minimal code as a…
david_o
  • 45
  • 5
0
votes
1 answer

How to count clicks on sibling elements and change CSS when all siblings have been clicked?

My code is :
1
2
3
4
5
1
2
3
4
If…
Tushar Ahirrao
  • 12,669
  • 17
  • 64
  • 96
-1
votes
3 answers

Jquery tree traversing not selecting

I have some jquery variables that attempt to get values of nearby elements however they don't work. I thought closest() was the right selector. JQUERY: $(".answerContainer").on("click", ".editAnswer", function(e){ e.preventDefault(); var answer_id…
kirby
  • 3,981
  • 14
  • 41
  • 54
-1
votes
1 answer

Using parent() to get values in jQuery

I'm printing the below HTML piece in a loop.
-1
votes
1 answer

jQuery Traversing in the DOM with Next() or Find()

I am having problem with Traversing in the DOM.
Aj Chan
  • 3
  • 3
-1
votes
1 answer

How to fill a text input using jquery with the content of a menu

I have code using bootstrap, with a drop-down menu:
-1
votes
4 answers

Getting undefined as the value for span tag while traversing a table

I need to reach the the span tag with class = ustatus and have the jQuery object obtained for id = foo.
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
-1
votes
2 answers

Accessing the upper parent node of the DOM

Here is the code that i have a problem with:
-1
votes
2 answers

Which code is better in jQuery traversing

Are the following 2 pretty much the same, or one is better and why? A) $myLists.find(".panel").hide().end() .find(".tabs a.active").removeClass("active").end() …
DimitrisK
  • 85
  • 1
  • 8
-2
votes
1 answer

Traversing a table with jquery

I have some table rows:
user1634700
  • 165
  • 3
  • 12
-3
votes
1 answer

check if target element is first element in class

I need to check if the element targeted is first element in its class and perform actions accordingly. For eg. I have a select element with class name 'team'. Now I need to check if the selected element is whether a first element or not. Here's my…
Azima
  • 3,835
  • 15
  • 49
  • 95
1 2 3
10
11