Skip to content

Instantly share code, notes, and snippets.

@danjjohnson
Created October 19, 2017 16:07
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 danjjohnson/887ed4b28dcd9f5963a247539d4fb47a to your computer and use it in GitHub Desktop.
Save danjjohnson/887ed4b28dcd9f5963a247539d4fb47a to your computer and use it in GitHub Desktop.
WooCommerce Product Add-ons - Set checkboxes to checked by default
// Set checkboxes to checked by default
jQuery(document).ready(function(){
jQuery('.addon-checkbox').attr( 'checked', 'checked' );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment