Do some js when click on navgiation
-
Hello,
I’m using metaslider pro and I have a problem. I’ve construed layer slider with both vimeo video and some html.
I’ve also written some js to stop any vimeo player on click.
Point was, when I navigate between slides, any vimeo player will stop. So I’ve tried to do something like this:
$(‘.flex-next, .flex-prev’).bind(‘click’, function () {blabla}
and then, when I click nothing happens, because these elements are added dynamically.
I’ve searched the web and found that maybe .on(‘click’, ‘.class’, function(){}) will help, but with no effect.Can someone help? ??
Thanks!
- The topic ‘Do some js when click on navgiation’ is closed to new replies.