Created
July 12, 2016 09:58
-
-
Save johnmmoss/40280cb99d63c8574cf9ca40b95a741a 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
// To disable and clear the checkbox, use "prop" NOT "attr" | |
$("#FollowUp").prop("disabled", checked); | |
$("#FollowUp").prop("checked", false); | |
// Options for setting values | |
checkbox.val("disabled", false); // Sets the value, but not if it is checked | |
checkbox.prop("disabled", false); // Disables the checkbox | |
checkbox.attr("disabled", false); // Also disables depending on version | |
checkbox.is(":checked"); // Returns checked value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment