Created
July 21, 2010 01:49
-
-
Save ikcaro/483908 to your computer and use it in GitHub Desktop.
como obtener el valor de un checkbox y revisar si está activado usando JQuery
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
//como revisar si un checkbox está activado en JQuery | |
//y obtener su valor | |
var v; | |
if( ( v = $("#id_del_elemento:checked").val() ) != null ){ | |
//hacer algo aquí | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment