Created
April 23, 2019 15:58
-
-
Save uzbekdev1/7c7c6edf85a2659677efbcb437b98a02 to your computer and use it in GitHub Desktop.
How to Allow Only One Checkbox to be Checked using jQuery
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:checkbox').off().on('click', function () { | |
$('input:checkbox').not(this).prop('checked', false); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment