1
아무도 클릭 한 클래스의 배열 인덱스를 어떻게 감지 할 수 있는지 알려 줄 수 있습니까?MooTools - 클래스의 배열 인덱스를 찾았습니다.
내가 가진 그래서 경우 :
HTML
<span class="test">first</span>
<span class="test">second</span>
<span class="test">third</span>
Mootools의 JS
$$('.test').addEvent('click', function(event){
// alert(this array index);
});
를 어떤 도움이 좋을 것, 감사합니다!