1
This is my code, I want to insert it into a div with the specific id. But right now I’m having a hard time getting him to show up on the div that I want.
var html =
'<div class="card">' +
'<div class="poster"><img id="id00" src=""></div>' +
'<div class="details">' +
'<h6>Post name<br><span><a class="link" href="#" target="_blank"></a></span></h6>' +
'<div class="description"><small><b>Descrição</b></small>' +
'<ul class="list-unstyled scroll lead">' +
'<li id="description"></li>' +
'</ul>' +
'</div>' +
'<button id="id01" class="btn btn-sm btn-block btn-outline-light">Baixar</button>' +
'</div>' +
'</div>';
var div = document.createElement('div');
div.innerHTML = html;