Не генерируйте HTML - он обычно медленнее, более подвержен ошибкам и сложнее в обслуживании. Генерировать элементы DOM программно:
const info = [
{title: "one"},
{title: "two"},
{title: "three"},
{title: "four"},
]
let blokla = document.createElement('select');
info
.map(item => item.title) //get the titles
.map(title => { //generate an option for each
let option = document.createElement('option');
option.textContent = title;
return option;
})
.forEach(option => blokla.appendChild(option)); //add to select
//just to show what HTML this element would have
console.log(blokla.outerHTML);
//append the element
document.body.appendChild(blokla);
Или чуть более элегантно, используя jQuery:
const info = [
{title: "one"},
{title: "two"},
{title: "three"},
{title: "four"},
]
let blokla = $("<select>");
info
.map(item => item.title) //get the titles
.map(title => $("<option>").text(title)) //generate an option for each
.forEach(title => title.appendTo(blokla)); //add to select
//put on the page
$(document.body)
.append(blokla);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>