Mootools Selectors
By: Arif Mahmud Rana
Web Developer Technobd
$
var myElement = $(el);
Examples
var myElement = $('myElement');
var div = document.getElementById('myElement');
div = $(div);
$$
var myElements = $$(aTag[, anElement[,
Elements[, ...]);
Examples
$$('a', 'b');
$$('#myElement a.myClass');
$$(myelement1, myelement2, 'a', '#myid, #myid2,
#myid3', document.getElementsByTagName('div'));
Attribute Selectors
'=' : is equal to($$(‘id=“elementId”'))
'*=': contains($$(‘title=“bd”'))
'^=' : starts-with($$(‘title^=“bd”'))
'$=' : ends-with($$(‘title$=“bd”'))
'!=' : is not equal to($$(‘id!=“elementId”'))
'~=' : contained in a space separated list
($$(‘id!=“elementId”'))
'|=' : contained in a '-' separated list
($$(‘id|=“elementId”'))
Q & A
Thanks
Reference
• http://mootools.net/docs/core125/core/Element
/Element#dollar
• http://mootools.net/docs/core125/core/Element
/Element#dollars
• http://mootools.net/docs/core125/core/Utilities/
Selectors
• http://solutoire.com/2007/09/20/understanding-
mootools-selectors-e-and-es/
And Google off course

Mootools selectors