I get this error:
Argument 1 of Node.appendChild is not an object
When I try to do this:
JS:
var selectVariable = '<select class="form-control" tabindex="4" name="regional" ng-model="query.regional ng-change="selectChange()">' +
'<option class="content" ng-repeat="regional in regionales" value="{{regional.name}}"> {{regional.name}} </option>' + '<select>';
setTimeout(() => {
document.getElementById("aquiva").appendChild(selectVariable);
}, 6000);
HTML:
<div id="aquiva" ng-class="{ 'col-xs-12' : !query.regional, 'col-xs-11' : query.regional }"></div>
Can you lend me a hand? Thanks.