I have a function:
function prodSubSection(div, sec, self) {
$(".prod-feat").hide();
$(div + sec).show('slide', {direction: 'right'}, 1000);
$(self)
.addClass('prodDetailsOn')
.parent('li').siblings().find("a")
.removeClass('prodDetailsOn');
}
And here is how I execute it:
$("#product1 li.details1 a").click(function() {
prodSubSection("#product1", ".over", this);
return false;
});
What I would like is to combine div and sec so above would be:
$("#product1 .over").show('slide', {direction: 'right'}, 1000);
Any idea what I am doing wrong?
Add a space: