Last active
August 18, 2021 14:58
-
-
Save chrisegg/c9a6b650fd96c82c9d66e808a4e7ff0f to your computer and use it in GitHub Desktop.
This code snippet works for text input fields only and can be placed in an HTML field within your form.
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
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
/* apply only to a input with a class of gf_readonly */ | |
jQuery(".gf_readonly input").attr("readonly","readonly"); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can find additional code snippets here: https://gravityranger.com/click/readonly-snippets/git