Let's say I need to find all the elements .barinside the element assigned to the variable foo.
.bar
foo
JQuery foo.find('.bar')solves the problem.
foo.find('.bar')
What is the equivalent function in mooTools?
<div id="container"> <span class="elems">...</span> <span class="elems">...</span> ... </div> ---- var elems = $('container').getElements('.elems'); // elems is now an array containing all spans with the class 'elem'
Or:
var elems = $$('#container.elems');
Source: https://habr.com/ru/post/1735593/More articles:Getting variable variable in c - cBest practices for optimizing PNG? - memoryMSBuild 4.0 Regular Expression Parsing - regexMonitoring resource usage in Jboss in JMeter performance tests - jbossJava Message Pool - javaWorking with widows in a multi-core environment - latexOpening LWJGL window from SWT application on Mac - javaC4772, even if the type library is registered and present - importHow to connect file upload control to a button? - asp.netHow to switch between UIViewControllers without using a tab bar? - objective-cAll Articles