Skip to content

Instantly share code, notes, and snippets.

@msenkpiel
Created April 26, 2012 08:16
Show Gist options
  • Save msenkpiel/2497547 to your computer and use it in GitHub Desktop.
Save msenkpiel/2497547 to your computer and use it in GitHub Desktop.
jQuery get selected checkbox or radios
if($('#checkbox-id').is(':checked')){
// checked
} else {
// unchecked
}
// radios
$('input[name=radioName]:checked').val()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment