Skip to content

Instantly share code, notes, and snippets.

@sahinsf
Last active December 19, 2015 00:39
Show Gist options
  • Save sahinsf/5870650 to your computer and use it in GitHub Desktop.
Save sahinsf/5870650 to your computer and use it in GitHub Desktop.
filter selected check boxes
input:checkbox[name="testcases[]"]:checked
//less specific
$('[type="checkbox"]:checked');
//another way
$('input:checkbox:checked.className');
if(checkedTestcases.length<1){
//at least one checked
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment