For example, I have fallowing code:
<ul id="agregator-menu">
<li class="agregator-menu-item"><a href="">News</a></li>
<li class="agregator-menu-item"><a href="">Reviews</a></li>
<li class="agregator-menu-item"><a href="">Videos</a></li>
</ul>
Is here any way how i can get nth-child (1 or 2 or 3) with Mootools in click event?
EDIT: I apologize for the wrong question. May be this code help.
<script type="text/javascript">
var items = $$('.agregator-menu-item a');
(items).addEvent('click', function(event) {
/*here how i can get number of position agregator-menu-item (this) in
#agregator-menu which user clicked
*/
});
</script>
I want display
contentitems
with same index asmenuitems
onClickresult: