I have a div within HTML a DIV element
<div class="row">
</div>
And in a JS file I have a JQUERY function
$.ajax({
url: 'https://swapi.co/api/people/?format=json',
type:'GET',
dataType: 'JSON',
success: function(per){
for (var i = 0; i < per.results.length; i++) {
var a = $("<div class='col-md-4'>sss</div>");
$("div .row").after(a);
console.log(per.results[i].name);
}
}
});
I need for each element of the JSON to create a div and be included within the HTML div