1
Well, I’m trying to get id of a link that looks something like this
home php.
<ul class="nav">
<li><a href="#" id="o-v">Teste</a></li>
</ul>
$(document).ready(function() {
const o_v = document.getElementById('o-v');
o_v.addEventListener('click', function(e) {
var video = document.createElement('div');
video.className="video";
video.appendChild();
console.log(video);
// alert(o_v, video);
});
});
so far so good, what I needed was to throw this div into my .box
only that this .box
is the noticia.php
, it would be something like this, as I recover the class video
being that she’s on another page?
php news.
$(document).ready(function() {
const box = document.getElementByClassName('box');
video.className="video";
video.appendChild(box);
console.log(video);
});