JSFiddle - React, Tailwind, and code Playground

by TheFiddler

HTML

<body>
    <div class="selectContainer">
        <select id="theSelect">
            <option value="">- Select -</option>
            <option value="OH">Ohio</option>
            <option value="CA">Cali</option>
            <option value="Other">Other</option>
        </select>
    </div>
    <div class="isOther">Other INPUT</div>
</body>

JavaScript

$('.isOther').hide();

$("#theSelect").change(function(){          
    var value = $("#theSelect option:selected").val();
    
    if (value == "Other")
    {
    
    $('.isOther').animate({width: 'toggle'})
    }
        else {
    $('.isOther').hide();
        
        }
        
});