JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head></head>
    <body>
        <form>
            <input id="a" type="text" value="  Click here  "/><br />
            <input id="b" type="text" value="  Then click here  "/>
        </form>
    </body>
</html>

JavaScript

$(document).ready(function() {
    $("input:text,").not(":disabled").live("blur", function() {
        var textVal = $.trim($(this).val());
        $(this).val(textVal);
    });
});