Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Last active March 7, 2016 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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