Created
October 9, 2010 16:13
-
-
Save gerardo/618336 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
$("select").change(function () { | |
if ($(this).val() == 'somevalue'){ | |
// do something | |
// puedes usar $(this).text() para obtener lo que se muestra en el select, .val() devuelve es el id | |
}else{ | |
// do something else | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment