Created
March 11, 2020 20:04
-
-
Save KevinAWolfe/5662b2cd6b77d06135a1806b3560591b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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