Skip to content

Instantly share code, notes, and snippets.

@gerardo
Created October 9, 2010 16:13
Show Gist options
  • Save gerardo/618336 to your computer and use it in GitHub Desktop.
Save gerardo/618336 to your computer and use it in GitHub Desktop.
$("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