dynamic carousel, jump to specific slide

dynamic carousel, jump to specific slide

Hello, I'm using the carousel from https://github.com/Wilto/Dynamic-Carousel
I'm using the 2nd example, which generates an icon to jump to different slides.
Each of this icons has a link like
 demo.html#carousel-2-0-slide0
 demo.html#carousel-2-0-slide1
 demo.html#carousel-2-0-slide2
 demo.html#carousel-2-0-slide3
 
I'm trying to add a menu item, outside the carousel to trigger the event but nothing happens
Like
$(".menutrigger").click(function()

 $('a[href^="carousel-1-0-slide2"]').trigger('click');
 return false;
});  













also tried

$(".menutrigger").click(function()

 $('carousel-2-0-tab1').trigger('click'); // this is the id of the <a>
 return false;
});  




Any idea how to fix, or another way to get this behavior?

Thank you
Regards