$('li').each(function(){
var $this = $(this);
$this.children("li").each(function(){
$this; // parent li
this; // child li
});
});
More Related Contents:
- What is wrong with this basic Javascript code? [closed]
- Get the longest text in HTML document using Jquery or javascript
- jQuery Mobile: document ready vs. page events
- How can I get the data-id attribute?
- jQuery Mobile: Markup Enhancement of dynamically added content
- Submit multiple forms with one submit button
- How to load all the images from one of my folder into my web page, using Jquery/Javascript
- How to submit an HTML form without redirection
- Is there a DOM event that fires when an HTML select element is closed?
- How do I remove tinyMCE and then re-add it?
- How to read xml file contents in jQuery and display in html elements?
- Attach an event in a child iframe to a handler in the parent window
- jQuery click anywhere in the page except on 1 div
- HTML anchor link – href and onclick both?
- How to ONLY trigger parent click event when a child is clicked
- How can I detect when a new element has been added to the document in jquery?
- Choosing Mobile Web HTML5 Framework [closed]
- JavaScript Loading Screen while page loads
- How to read line by line of a text area HTML tag
- jQuery: trigger a hover event from another element
- jQuery – Sticky header that shrinks when scrolling down
- jQuery text() and newlines
- Show text letter by letter
- How to use jQuery’s drop event to upload files dragged from the desktop?
- jQuery: Change element type from hidden to input
- call the same jQuery function in multiple buttons
- Detect added element to DOM with Mutation Observer
- html() vs innerHTML jquery/javascript & XSS attacks
- copying the value of a form’s file input field to another form’s input field
- Bootstrap Dropdown menu is not working