For example, there is a sample list (Li tags). By clicking on an element (LI), we catch it with this, and then how to find out what element on the account we clicked?
Answer 1, Authority 100%
var $ set = $ ('ul li');
$ ('UL'). ON ('Click', 'Li', Function () {
var n = $ set.Index (this);
Console.log (N);
});
http://jsfiddle.net/oceog/zlzg2/
Answer 2, Authority 14%
$ ('ul'). ON ('Click', 'Li', Function () {
Alert ($ (this) .INDEX ());
});