Skip to content

Instantly share code, notes, and snippets.

@ikcaro
Created July 21, 2010 01:49
Show Gist options
  • Save ikcaro/483908 to your computer and use it in GitHub Desktop.
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
//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