Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Last active March 7, 2016 16:53
Show Gist options
  • Save mikejolley/7213398 to your computer and use it in GitHub Desktop.
Save mikejolley/7213398 to your computer and use it in GitHub Desktop.
WooCommerce Product Addons - Init datepicker (https://gist.github.com/mikejolley/7213366)
// Check the name of your addon field in the source. Example: addon-7934-test-addon
jQuery( 'input[name^="addon-7934-test-addon"]' ).datepicker( {
minDate: 0,
"dateFormat": 'yy-mm-dd'
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment