Open m-nasser opened 7 years ago
$('.myslider').sly('on', 'active', function(eventName,itemIndex){ containers.hide(); // Im hiding some conatiners here var new_tab = $($(this)[0].items[itemIndex].el).attr('data-value'); $("." + new_tab).show(); // Im showing the active one.