JSFiddle - React, Tailwind, and code Playground

HTML

<div id="wrapper">
    <input id="search_btn" value="Search" type="button">
</div>

JavaScript

$("#search_btn").click(function(){
    if(($('#other').length) > 0) {
        $("#wrapper").append("<p id='other'>I am here</p>");
    }
});