JSFiddle - React, Tailwind, and code Playground

by cgough

HTML

<select size="1" id="D1">
</select>

JavaScript

$("select#D1").append( $("<option>")
    .val("value")
    .html("text to be displayed", "other")
);