Created
June 1, 2015 07:00
-
-
Save marknt15/78d9c4f07b6658964493 to your computer and use it in GitHub Desktop.
jQuery toggle checkbox on and off
This file contains 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
// check if checkbox is checked | |
if ($("#toggle_start").is(':checked')) { | |
var datetimepicker_start = $("#datetimepicker_start").val(); | |
} else { | |
var datetimepicker_start = 'disabled'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment