Created
January 14, 2013 14:18
-
-
Save maxwellnewage/4530330 to your computer and use it in GitHub Desktop.
en base a una seleccion del select option, imprime un mensaje en el div
This file contains hidden or 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
$().ready(function(){ | |
$("#selector").on('change', function(){ | |
switch($("#selector option:selected").val()) { | |
case "1": | |
$("#mensaje").html("buena opcion"); | |
break; | |
case "2": | |
$("#mensaje").html("medianamente buena opcion"); | |
break; | |
case "3": | |
$("#mensaje").html("mala opcion"); | |
break; | |
case "4": | |
$("#mensaje").html("una opcion"); | |
break; | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment