Created
October 19, 2017 16:07
-
-
Save danjjohnson/887ed4b28dcd9f5963a247539d4fb47a to your computer and use it in GitHub Desktop.
WooCommerce Product Add-ons - Set checkboxes to checked by default
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
// 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