JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.8/jquery.validate.min.js"></script>
<form id = "myform" action="htmlPage1.htm">          
    <div id="Errors"></div>         
    <div>             
        <input type="text" id="textToVal"  value="" name="textToVal" />             
        <input type="submit" id="testerbtn"  value="Tester" />         
    </div>     
</form>

JavaScript

$("#myform").validate({
    errorLabelContainer: $("#Errors"),
    rules: {
        textToVal: {
            required: true
        }
    },
    messages: {
        textToVal: "the field is required! nub~!"
    }
});