I need to load the video.html page in the div with video id using JavaScript. I have the following script:
function video() { $.ajax({ url: "video.html", cache: false, success: function(html){ $("#video").html(html); }, }); }And the following HTML:
<div id="video">
</div>
<br/>
<button onclick="video()">Carregar</button>
But when I click the "upload" button nothing happens.