You're making it more complicated than it really is.
Using something similar to Jonathan's method:

// Change your id to something like 'link_1', like here:
<a href="#" id="link_1" class="active">slide 1</a>


var activeTabID = $(this).attr('id');  // -> link_1
var activeTab = activeTabID.split('_')[1];  // -> 1
$('#tab_'+activeTab).fadeIn(500);  // fadeIn element with ID 'tab_1'


On Mar 31, 3:04 pm, Warfang <warfang...@gmail.com> wrote:
> Could I do something like this?...
>
>   var activeTab = $(this).attr('id');
>   $(''#(activeTab)'').fadeIn(500);
>
> Those are two single quotes by the way. That is what I would like to
> accomplish.

Reply via email to