Skip to content

Instantly share code, notes, and snippets.

@superpowered
Last active November 12, 2018 18:34
Show Gist options
  • Save superpowered/5f518fd61bc71a2f2b0e88ffa1fc5fb4 to your computer and use it in GitHub Desktop.
Save superpowered/5f518fd61bc71a2f2b0e88ffa1fc5fb4 to your computer and use it in GitHub Desktop.
Gravity Forms. Disable weekends - Allow time selection based on day.
//Note that this does not validate server side.
jQuery(document).ready(function($) {
$( "#input_16_6" ) //#input_[form_id]_[field_id]
.datepicker({ gotoCurrent: true, prevText: '<', nextText: '>', showOn: 'both', beforeShowDay: jQuery.datepicker.noWeekends });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment