JSFiddle - React, Tailwind, and code Playground

HTML

<form id="myForm">
</form>
<p id="selected" style="font-size:20px; color:#f00;"></p>

JavaScript

var json = "blah blah blah";

jQuery(document).ready(function(){
    
    $('#myForm').html('<select id="sg-1" class="setgroup" name="sg-1"><option value="s-1">Something</option><option value="s-2">Another</option><option value="s-3">Third</option><option value="s-4">Fourth</option></select>');
    
    $('.setgroup').live('change',function(){

        updateSelected($(this + ':selected').val(), json);
        
    });
    
});
    
    function updateSelected(value){
        $('#selected').html(value + ' was selected');
    }