Skip to content

Instantly share code, notes, and snippets.

@GiacomoLaw
Created March 22, 2017 17:50
Show Gist options
  • Save GiacomoLaw/6fe781244b5c993d97c8550c82ad6e13 to your computer and use it in GitHub Desktop.
Save GiacomoLaw/6fe781244b5c993d97c8550c82ad6e13 to your computer and use it in GitHub Desktop.
//
$("input[value='hello'][type='checkbox']").change(function(){
$("input[value='hello'][type='checkbox']").prop("checked", $(this).prop("checked"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment