Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get nested element

// for the links of the first ul.menu on the page
var menuLinks = document.getElement("ul.menu").getElements("a");
// or you can get all links children of all uls with class menu
var menuLinks = document.getElements("ul.menu a");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #nested #element
ADD COMMENT
Topic
Name
1+8 =