JSFiddle - React, Tailwind, and code Playground

by alansouzati

HTML

<div id="myContainer"
     class="hpConnectedContainer">
    <select id="myDropdown">
        <option>Select...</option>
    </select>
</div>

CSS

.hpConnectedContainer {
    background: lightblue;
    height: 100px;
}

#myDropdown {
    width: 100px;
}

JavaScript

var dropdown = document.getElementById("myDropdown");

var option = document.createElement("option");
option.text = "Hp Palo Alto";

dropdown.add(option);