Skip to content

Instantly share code, notes, and snippets.

@ahmedghazi
Last active January 12, 2018 10:58
Show Gist options
  • Save ahmedghazi/0c86352995cd76f2422d0232a2a37c71 to your computer and use it in GitHub Desktop.
Save ahmedghazi/0c86352995cd76f2422d0232a2a37c71 to your computer and use it in GitHub Desktop.
input[type='checkbox'],
input[type='radio'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: white;
border: 2px solid #000;
width: 16px;
height: 16px;
}
input[type='checkbox']:checked,
input[type='radio']:checked {
background: #000;
}
$(document).on( 'change', '.checkbox input', function(e) {
if($(this).is(":checked")) {
console.log(this.value)
}else{
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment