JSFiddle - React, Tailwind, and code Playground

HTML

<select>
  <option>Choose Your Name</option>
  <option>Frank</option>
  <option>George</option>
  <option>Other</option>
</select>

JavaScript

$(document).ready(function(){
    $('select').change(function(){
        if($('select option:selected').text() == "Other"){
        $('html select').after("<label>Enter your Name<input></input></label>");
        }
        else{
        $('label').remove();
        }
    })
});