Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Last active July 20, 2020 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salsalabs/ce67fd12183e8bb3577bf6bd4fcb4ef5 to your computer and use it in GitHub Desktop.
Save salsalabs/ce67fd12183e8bb3577bf6bd4fcb4ef5 to your computer and use it in GitHub Desktop.
Script to hide the submit button on an event. Input fields will still be live -- there just won't be a way to submit them.
<!-- BEGIN Hide submit button on an event. -->
<script type="text/javascript">
$(document).ready(function () {
var e = document.querySelector("#submitAddAttendee");
if (e != null) {
e.style.display = "none";
}
});
</script>
<!-- END Hide Submit button on an event. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment