Skip to content

Instantly share code, notes, and snippets.

@KevinAWolfe
Created March 11, 2020 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevinAWolfe/5662b2cd6b77d06135a1806b3560591b to your computer and use it in GitHub Desktop.
Save KevinAWolfe/5662b2cd6b77d06135a1806b3560591b to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Calculate Age Dates for TouchPoint</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<!-- <link rel='stylesheet' type='text/css' media='screen' href='main.css'> -->
<script src='https://code.jquery.com/jquery-3.4.1.min.js'></script>
</head>
<body>
<form>
<label>Date 1
<input class="target" name="submitted-name" autocomplete="name">
</label>
<button>Save</button>
</form>
<p>The number is: <span id="number"></span></p>
<script>
$(document).ready(updateValues);
$('.target').on("input", updateValues);
function updateValues() {
$("#number").html($(".target").val());
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment