1

I want to have chemical formula to be written inside HTML SELECT TAG. for eg. H2O or CO2. But they should be properly formatted with subscript. But this is not happening.

enter image description here

<select id="a1"></select>
<script>
    window.onload = function(e){
    $("#sol").css("pointer-events", "none");
    $('#a1').append("<option selected disabled>     </option><option>Trough</option><option>Beehive Shelf</option><option>Delivery Tube</option><option>Gas Jar</option><option>Thistle Funnel</option><option>MnO2 and H2O</option><option>Water</option>");
}
</script>

0 Answers0