JSFiddle - React, Tailwind, and code Playground

by kasdega

HTML

<p id="disclaimer" > DDDDDDDDDDDDDDDDDDDDDDDDDD</p>
<input type="button" class="HideButton" value="Hide" />
<br/>
<input id="MessageText" type="text" />

JavaScript

$('.HideButton').click(function () {
        var theButton = $(this);
        $('#disclaimer').slideToggle('slow', function(){
            theButton.val($(this).is(':visible')?'Hide':'Show');
        });
    return false;
});

$('#MessageText').bind("keyup", function() {
    var text3 = $(this).val();
    $("#disclaimer").text(text3);
});