Created
March 31, 2017 15:26
-
-
Save anonymous/10e113834f54af88d0696b5aadff010f to your computer and use it in GitHub Desktop.
Cambio a mayusculas o minúsculas
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"> | |
<title>Excel To HTML using codebeautify.org</title> | |
</head> | |
<body> | |
<form> | |
<input id="txtOriginal" name="original" /> | |
<br /> | |
<input id="txtResultado" name="resultado" /> | |
<br /> | |
</form> | |
<button id="btnMayus" onclick="mayus()"> Mayúsculas </button> | |
<br /> | |
<button id="btnMinus" onclick="minus()"> Minúsculass </button> | |
<script type="text/javascript"> | |
function mayus() { | |
var input = document.getElementById('txtOriginal'); | |
var output = document.getElementById('txtResultado'); | |
output.value = input.value.toUpperCase(); | |
} | |
function minus() { | |
var input = document.getElementById('txtOriginal'); | |
var output = document.getElementById('txtResultado'); | |
output.value = input.value.toLowerCase(); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment