$("ul").on("click", "li", function(e){ var $target = $(e.target); var index = $target.index(); $target.siblings().css('color', 'black'); $target.css('color', 'red'); console.log($target); console.log(index); });
Real Time Analytics