){ if(this == dt) {$(this).next("dd").show();$(this).addClass("select");} else {$(this).next("dd").hide();$(this).removeClass("select");} }); } alldt.each(function(){ $(this).click(function(){showNear(this);}).hover(function(){showNear(this);}); }); showNear(alldt[0]);