Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // http://www.gravityhelp.com/forums/topic/date-picker-validation-in-datefield#post-149929
- jQuery(document).bind('gform_post_render', function(){
- // create new custom datepicker
- // change input_3_4 to your text field where you want a custom formatted datepicker
- jQuery("#input_3_4").datepicker({
- defaultDate: '+7d',
- autoSize: true,
- minDate: '+7d',
- dateFormat: 'DD, d MM, yy',
- gotoCurrent: true,
- prevText: '',
- showOn: 'both',
- buttonImage: '',
- buttonText: '',
- buttonImageOnly: true
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement