Last active
March 7, 2016 16:53
-
-
Save mikejolley/7213398 to your computer and use it in GitHub Desktop.
WooCommerce Product Addons - Init datepicker (https://gist.github.com/mikejolley/7213366)
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
// 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