Last active
March 2, 2022 03:09
-
-
Save mikeott/a92bebfae0d62ddb8e77cd83371d5ae6 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
jQuery('.my-button').click(function() { | |
if(jQuery(this).prop('checked')) { | |
jQuery('.my-checkbox').removeAttr('disabled'); | |
} else { | |
jQuery('.my-checkbox').attr('disabled', 'disabled'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment