Created
July 13, 2023 13:13
-
-
Save yashasvi9199/7fd7b727e687829a8242d713c761dbb4 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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> | |
</head> | |
<body> | |
<h3>Enter your Age</h3> | |
<input type="number" id="age" /> | |
<script> | |
$("#age").change(function() { | |
var age = $("#age").val(); | |
var days = age * 365; | |
alert("Your age in days is " + days + " days"); | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment