Last active
April 17, 2022 10:33
-
-
Save vfontjr/6321b017089c103a23f1e515e8fd97fa to your computer and use it in GitHub Desktop.
Source code for https://formidable-masterminds.com/disable-copying-email-address-into-email-confirmation-field/
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
<script> | |
/* disables copy and paste */ | |
document.getElementById("field_conf_29yf4d2").addEventListener('paste', e => e.preventDefault()); | |
/* disables drag and drop */ | |
document.getElementById("field_conf_29yf4d2").addEventListener('drop', e => e.preventDefault()); | |
/* disables browser autocomplete */ | |
document.getElementById("field_conf_29yf4d2").addEventListener('autocomplete', e => e.preventDefault()); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment