[Solved] .index() only for one instance of class [closed]
[ad_1] It is working like this: $(‘.three’).click(function(){ $(this).parent().parent().find(‘.threeB’).eq($(this).index()) .css(‘background’,’green’); }); Check here: jsFiddle [ad_2] solved .index() only for one instance of class [closed]