JSFiddle - React, Tailwind, and code Playground

JavaScript

$(function(){    
    var title_id = '', status_type = ''; 
    $('body').html(
        $("<select/>", {
            id: 'sel',
            change: function() {
                selectdone(this, title_id, status_type);
            },
            blur: function() {
                selectdone(this, title_id, status_type);
            }
        })
        .append($('<option />', { 'text':'one'}))
        .append($('<option />', { 'text':'two'}))
    );
    $(document).click(function(){
       alert('test'); 
    });
});

function selectdone(element, titleid, statustype){
    $(element).hide();
}