$(function(){ $("#acordion dt").on({ click: function(){ $(this).nextUntil("dt").slideToggle(300); }, mouseover: function(){ $(this).css("background", "#ddd"); }, mouseout: function(){ $(this).css("background", ""); } }); });