JSFiddle - React, Tailwind, and code Playground

by Joe Pool

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.6/themes/smoothness/jquery-ui.css">
<script src="http://www.dotnetcurry.com/Demos/jQueryDemo/jquery.keyboard.js"></script>
<div class="container">
  <div class="header">
    <div class="FileSearch">
      <!-- Other HTML here -->
    </div>
  </div>
  <div class="content">
    <form id="testInput" action="HTMLTestPage1.html" method="post">
    <input type="text" name="text1" />
    <input type="text" name="text2" />
    <input type="text" name="text3" />
    <input type="submit" name="Submit" value="Submit" />
    </form>
  </div>
  <div class="footer">
    <div class="EmployeeSearch">
      <!-- Other HTML here -->
    </div>
  </div>
</div>

JavaScript

$('.container .content input').keypress(function (event) {
	if (event.keyCode == 10 || event.keyCode == 13) {
		alert('Form Submission needs to occur using the Submit button.');
		event.preventDefault();
	}
});