hi i was making a content slider but i got stuck at this error called Unexpected token function. the console shows that i have a error at this function error: uncaught syntax error : Unexpected token function.
goNext function(){
$('.active').removeClass('active').addClass('oldActive');
if($('.oldActive').is(':last-child')){
$('.slide').first().addClass('active');
}else{
$('.oldActive').next().addClass('active');
}
$('.oldActive').removeClass('oldActive');
$('.slide').fadeOut(speed);
$('.active').fadeIn(speed);
}
any ideas how to get this fixed...??