JSFiddle - React, Tailwind, and code Playground

by kosmos

HTML

<input class="jsTextArea" type="text" />

JavaScript

$(document).ready(function() {
    $('.jsTextArea').blur(function() {
        var pattern = /[^\000-\031]+/gi;
        var val = $(this).val();
        if (pattern.test(val)) {
            alert("It matched");
        }
        else {
            alert("It did NOT match");
        }
    });
});