JSFiddle - React, Tailwind, and code Playground

HTML

<select id="abc"></select>

JavaScript

$(document).ready(function() {
    $.ajax({
        type: "GET",
        url: "test.php?q=XYZ",             
        dataType: "html",              
        success: function(response){                    
            $("#abc").html(response); 
        },
        error: function(response){                    
            alert("AJAX error!");
        }
    });

});