JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DOM</title>
</head>
<body>
<div class="content">
</div>
</body>
</html>
JavaScript
$(function() {
var myselect = $('<select/>', { id: 'myselect'});
var items = ["Google","Yandex","Bing"];
$.each(items,function() {
$('<option/>', {
val: this,
text: this
}).appendTo(myselect);
});
myselect.val('Yandex');
$('.content').append(myselect);
});