JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-lightness/jquery-ui.css">

<form id='theForm'>
    <input id='test_field' name='test_field' value='jQuery' />
    <br>
    <input id='test_field2' name='test_field2' value='prototypejs' />
</form>

JavaScript

$.validator.addMethod(
    "mustIncludejQuery", 
    function(value, element) { 
        return value.toLowerCase().indexOf('jquery') > -1;
    }, 
    "You must type jQuery to be valid."
);

$('#theForm').validate({
   rules: {
       test_field:'mustIncludejQuery',
       test_field2:'mustIncludejQuery'
   }
});
    
    $('#theForm').valid();