JSFiddle - React, Tailwind, and code Playground

HTML

<select id="test">
<option></option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>

<input type="button" id="but" value="click"/>

JavaScript

$('#test').change(function() {
                $('#test').attr('disabled', 'disabled');
        });
        

   $('#but').click(function() {
                $('#test').removeAttr('disabled');
       $('#test option:selected').removeAttr('selected');
       $('#test option:first').attr('selected','selected');
        });