Skip to content

Instantly share code, notes, and snippets.

@Btibert3
Created December 11, 2020 18:44
Show Gist options
  • Save Btibert3/0ad5b1f350699c87357cee81063e43e9 to your computer and use it in GitHub Desktop.
Save Btibert3/0ad5b1f350699c87357cee81063e43e9 to your computer and use it in GitHub Desktop.
// const reqParent = document.getElementById("tfa_430");
const birthDateString = document.getElementById("tfa_327");
console.log(birthDateString);
const birthDate = Date(birthDateString);
console.log(birthDate);
const compareDate = Date();
if (birthDate > compareDate) {
console.log("test compare is true");
document.getElementById("tfa_430").checked = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment