JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://malsup.github.com/jquery.blockUI.js"></script>
<div>
    Enter <input type="text" class="mytext"/>
    </div>

CSS

.mytext{
    height: 20px;
}

JavaScript

$('a.openMod').click(function(e){
    e.preventDefault();
    $.blockUI({
        message: $('#' + this.id + '_win'),
        css: {
            width: '500px'
        }
    });
});

$('[id$=_close]').click(function () { //<-- gets all elements with id's that end with close
    $.unblockUI();
    return false;
});