I have a html video, and I am wanting to run a function when a video ends. I have tried the following but I get nothing:
$(document).ready(function(){ $
You can use on in the place of live. Because on method is supported by jquery new versions and live is deprecated in new versions.
You can replace your code to this and your problem will be solved.
$(document).ready(function(){ $('video').on('ended',function(){ alert('video ended'); });
});