I have a accordion menu that expands and contracts with mouse over: $("dd").hide(); var overFn = function(){ $("dd:visible").slideUp("slow"); $(this).parent().next().slideDown("slow");
}; // hover delay var outFn = function(){}; $("dt a").hoverIntent({ over: overFn, sensitivity: 3, interval: 130, out: outFn }); I have another set of links on the page and I was wondering how I could add an on-click function that expanded the appropriate part of the accordion? This one is calling it by the parent but say the top hidden accordion is giving the class dd.one ... and the link controlling it is a.linkone $("dd.one").hide(); $("a.linkone").click(function(){ How do I replace this: $(this).parent().next().slideDown("slow"); with this functionality $("dd.one").slidedown("slow"); ?? return false; });