Last active
January 12, 2018 10:58
-
-
Save ahmedghazi/0c86352995cd76f2422d0232a2a37c71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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