<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-git.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Detect pressing Enter key on keyboard using jQuery.</title>
</head>
<body>
<p>Input a value within the textbox and press Enter</p>
<form>
<input type="text" id="hello"></p>
</form>
</body>
</html>
HTML Code :
JavaScript Code: