<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<input id="one" type="text" />
    <script
  src="https://code.jquery.com/jquery-1.12.4.min.js"
  integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
  crossorigin="anonymous"></script>
	</body>
</html>
			$('#one').on('blur', function() {
				let input_text = $('#one').val();
				input_text = input_text
					.replace(/[0-9]/g, function(s) {
						return String.fromCharCode(s.charCodeAt(0) - 65248);
					})
					.replace(/[^0-9]/g, '');
				$('#one').val(input_text);
			});
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.