JSFiddle - React, Tailwind, and code Playground
HTML
<select id="DropDownTextFiledName">
<option value="1">show</option>
<option value="2">hide</option>
</select>
<input type="text" id="TextFieldName" />
JavaScript
$( "#DropDownTextFiledName" ).change(function() {
if($( this ).val() == 2){
$("#TextFieldName").hide();
} else {
$("#TextFieldName").show();
}
});