Hi h have some code which brings back the class name of a link
var activeTab = $(this).attr("class");
so lets say the above brings back a value of ‘one’
i need to append this to be #one for the below code
var activeTab = $(this).attr("class");
$(activeTab).stop(true, false).animate({ height: "200px" });
thanks in advance
You can use + operator for string concatenation like this:
$('#' + activeTab)