Skip to content

Instantly share code, notes, and snippets.

@accrane
Created April 14, 2017 19:19
Show Gist options
  • Save accrane/4d4c3187feb0b6bd2cbb0b89ae4e712e to your computer and use it in GitHub Desktop.
Save accrane/4d4c3187feb0b6bd2cbb0b89ae4e712e to your computer and use it in GitHub Desktop.
disable submit button
<script type="text/javascript">
jQuery(document).ready(function ($) {
// disable the button until successfull google captcha
document.getElementById("button1").disabled = true;
document.getElementById("button2").disabled = true;
})(jQuery);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment