It doesn't make sense to me, getElementById works just fine but I want to use jquery to keep the pattern of my website accessing elements. Any idea?
<script>
$(document).ready(function () {
var vid = document.getElementById("myVideo"); //$("#myVideo");
$("#btnFullScreen").click(function () {
vid.requestFullscreen();
});
$("#btnPlay").click(function () {
console.log("play");
vid.play();
});
$("#btnPause").click(function () {
console.log("pause");
vid.pause();
});
});
</script>