JSFiddle - React, Tailwind, and code Playground

HTML

<select id="test">
    <option></option>
    <option>Option 1</option>
    <option>Option 2</option>
    <option>Option 3</option>
</select>
<div class="alert">Select clicked</div>

CSS

div.alert{
    position:fixed;
    top:0;
    width:100px;
    height:100px;
    background:black;
    color:white;
}

JavaScript

$('.alert').hide();
$('#test').focus(function() {
    $('.alert').show();
});
$('.alert').click(function() {
    $(this).hide();
});