Controlling html5 video without self referencing
This works:
$(function(){
$('#video').click(function() {
this.play();
});
});
but this doesnt:
$(function(){
$('#video').click(function() {
$('#video').play();
});
});
nor does assigning a var to #video or any other trick. Im trying to get the video to play when another element is clicked so i cant use 'this' selector.