Select elements by innerHTML with jQuery
http://richard2001.blogspot.tw/2010/02/select-elements-by-innerhtml-with.html
it's amazing, but i haven't used it.
$('selector').click(function (index) {
$('another').eq(i) //do something
});
but not working.$('selector').click(function(){ var a = $('selector').index(this) );$('another').eq(a) //do something});
it is important that .not() writing at the above.$('selector').click(function(){ var a = $('selector').index(this) );$('another').not(this) //do something$('another').eq(a) //do something});