var cur_child = childs.attr('name'), // странная строка s = "a[name = " + cur_child + "]", act_child = $('ol.filetree').find(s).addClass('current'), act_child1 = $('ul.filetree').find(s);