0
Hello, it is possible to use a loop inside the append function ?
I have the variable (presentation) in the code below. Let’s assume that this variable was a Vector, apeend?
<html>
<body>
</body>
</html>
$(function(){
var valorID="meuID";
var apresentacao="meu nome";
var a='<div id='+valorID+'>'+apresentacao+
'<div id="a">presentacao</div>'+
'</div>';
$("body").append(a);
});
The ideal would not be to use the function
append
within aloop
?– reisdev