I am new to Mootools and have been using jQuery for a while. What I am trying to do is convert some jQuery into mootools.
I have the following written in jQuery :
var title = $('a:eq(2)').attr('title');
how would you write the equivalent in mootools?
You could use the double dollar function, which returns an array of elements matching the element type you supply –
Demo – http://jsfiddle.net/wWbmC/
Further Info
http://mootools.net/blog/2010/03/19/a-better-way-to-use-elements/
http://solutoire.com/2007/09/20/understanding-mootools-selectors-e-and-es/