Top "Dom-traversal" questions

The process of traversing the Document Object Model (DOM) tree and finding nodes based on certain criterion.

appendChild Not Working

HTML: <ul id="datalist"> </ul> JavaScript: function add(content){ ul=document.getElementsByTagName("ul"); var li=document.…

javascript dom dom-traversal
How to find elements that match multiple conditions

What I need to do is find all a elements on the page that contain "tag" in the href property …

jquery jquery-selectors dom-traversal
How to find the closest sibling in jQuery

I am trying to learn jQuery, I have following mark up In a div, I have two texts date and …

javascript jquery dom-traversal
Javascript-HTML - how to iterate through all the forms on a page?

How can I iterate through all forms in a document using javascript?

javascript dom dom-traversal
jQuery: prev(<selector>) not working?

I'm having trouble using prev() in jQuery where it's not selecting the right element. My HTML structure is as follows: &…

jquery jquery-selectors dom-traversal
Jquery find table cell where value is X

I am trying to find a <td> where the value is 5. It is a calender so there will …

jquery dom-traversal
Selector for grandchildren, or how to anchor the selector on a known element

Let's say I have a hierarchy of elements, with #root at its root. I can use $('#root > * > *…

jquery jquery-selectors dom-traversal
remove 3 last divs with jQuery

<div id="widgetAreaFooter"> <div class="row">1</div> <div class="row">2</div&…

jquery dom-manipulation dom-traversal
Closest ancestor matching selector using native DOM?

Is anybody working on a jQuery.closest() equivalent in the DOM api? Looks like the Selectors Level 2 draft adds matches() …

javascript jquery standards w3c dom-traversal