-
-
Save jasperan/4d53fbfde7a5b7fe84577d842a034b43 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
function sumar() { | |
var caja = document.getElementById("fe694"); | |
var selector = document.getElementById("cmb3"); | |
if (selector.value.toLowerCase() != 'reagendar') { // No hacer nada | |
return false; | |
} | |
if (caja.value == ''){ // Le ponemos el valor por defecto | |
caja.value = 0; | |
} | |
caja.value = parseInt(caja.value) + 1 ; | |
if (selector.value.toLowerCase() == 'contestar') { // En caso de que sea 'contestar', le reiniciamos a 0! | |
caja.value = 0; | |
} | |
selector.value = ""; // Si lo necesitas, sino, yo lo quitaría, no veo por qué dejarlo | |
} | |
function ejemplo_corchetes(){ | |
if ("hello" == "hello"){ | |
if (2 == 2){ | |
if (3 == 3){ | |
console.log("Mira los corchetes, estan ordenados jerarquicamente"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment