JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

<input type="text" id="inputid" />
<input type="submit" id="buttonid" value="submit" />

JavaScript

$(document).ready(function(){
$("#buttonid").on("click",function() {
    var anything = $("input#inputid").val();
	var num1 = [".here", ".there"];
	var num2 = ["stay"];
	var thing = -1;
	if((thing = $.inArray(anything, num2)) !== -1)
	{
	alert("Not allowed to " + num2[thing]);
    return false;
	}
});
});