Skip to content

Instantly share code, notes, and snippets.

@webmasterninjay
Last active January 25, 2019 21:02
Show Gist options
  • Save webmasterninjay/d5bfa921dd0aeb49ad4721931bd1450f to your computer and use it in GitHub Desktop.
Save webmasterninjay/d5bfa921dd0aeb49ad4721931bd1450f to your computer and use it in GitHub Desktop.
WP
jQuery(document).ready(function($) {
$('div.submit input').before("<p class='toc-acceptance'><input type='checkbox' value='1' name='accept_toc' required='required' id='accept_toc' checked> Accept <a href='https://clubdragonfly.com/terms-and-conditions/' target='_blank'>Terms & Conditions</a></p>");
$('div.submit input#accept_toc').click(function () {
$('#signup_submit').attr('disabled',! this.checked);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment