Hello,
I am having a problem and I hope you can help me. I have a video running on a page and after it finishes I want to trigger a div that contains a slide. Here’s the code I am using to detect when the video ended and to display the div but i must be doing something wrong ( don’t know my way around javascript at all )
`<script type=’text/javascript’>
document.getElementById(‘video1’).addEventListener(‘ended’,displaydiv,false);
function displaydiv(e) {
$(“#slide1”)
</script>
And here is the div i want to trigger after the video has finished:
`<div id=”slide1″ class=”slide”></div>
`
Would appreciate your help so much,
Thank you!