ElEditors, Interface administrators, Administrators
85,546
edits
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
var list_parent = $(this).parent(); | var list_parent = $(this).parent(); | ||
var root = $(list_parent).parent(); | var root = $(list_parent).parent(); | ||
var target = root.children('div | var target = root.children('div:eq(' + list_parent.index(this) + ')'); | ||
list_parent.children('li.active').removeClass('active'); | list_parent.children('li.active').removeClass('active'); |