---
# How exclude a day (jQuery datepicker + Contact Form 7)
**URL:** https://modul-r.codekraft.it/2021/07/datepicker/
Date: 2021-07-06
Author: Erik
Post Type: post
Summary: ref. https://wordpress.org/support/topic/how-to-disable-exclude-specific-day-in-date-picker Your name Your email Subject Your message (optional)
Categories: Blog, Contact form 7
---
ref. [https://wordpress.org/support/topic/how-to-disable-exclude-specific-day-in-date-picker](https://wordpress.org/support/topic/how-to-disable-exclude-specific-day-in-date-picker)
[contact-form-7 id="651" title="datepicker"]
```
[date your-date id:datepicker]
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/ui-lightness/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script>
jQuery(function($){
$("#datepicker").click(function(e){
e.preventDefault();
}).datepicker({
dateFormat: "yy-mm-dd",
beforeShowDay: function (date) {
return date.getDay() == 2 ? [false, " disabled"] : [true, " enabled"];
}
});
});
</script>
<style>
.disabled {
color: #000;
}
.enabled {
color: #ff0000 !important;
}
input::-webkit-calendar-picker-indicator{
color:red;
}
input[type="date"]::-webkit-calendar-picker-indicator {
-webkit-appearance: none;
}
</style>
[submit "Submit"]
```
---
## Categories
- Blog
- Contact form 7
---
## Navigation
- [Home](https://modul-r.codekraft.it/)
- [Theme Setup](https://modul-r.codekraft.it/2019/06/theme-setup/)
- [Environment Setup](https://modul-r.codekraft.it/2019/06/environment-setup/)
- [Functions and Components](https://modul-r.codekraft.it/2019/06/custom-theme-functions/)
- [Classic](https://modul-r.codekraft.it/category/classic/)
- [Shop](https://modul-r.codekraft.it/shop/)
- [Tag /Archive format](https://modul-r.codekraft.it/tag/post-formats/)
- [Modul R](https://wordpress.org/themes/modul-r/)
- [Modul R (git)](https://github.com/erikyo/Modul-R)
- [Modul R Child (git)](https://github.com/erikyo/Modul-R-child)
- [CF7 Antispam](https://wordpress.org/plugins/cf7-antispam/)
- [OH-MY-SVG](https://modul-r.codekraft.it/oh-my-svg/)
- [Model-Viewer WordPress block](https://modul-r.codekraft.it/model-viewer-wordpress-block/)
- [Remove Capslock](https://wordpress.org/plugins/remove-capslock)
- [Blog](https://modul-r.codekraft.it/category/random-access-memories/)
- [Codekraft](https://github.com/codekraft-studio)
- [About Me](https://modul-r.codekraft.it/erik-golinelli/)
- [Contact](https://modul-r.codekraft.it/contacts/)
- [Credits](https://modul-r.codekraft.it/credits/)
---
## Footer Links
- [Theme Setup](https://modul-r.codekraft.it/2019/06/theme-setup/)
- [Functions and Components](https://modul-r.codekraft.it/2019/06/custom-theme-functions/)
- [Environment Setup](https://modul-r.codekraft.it/2019/06/environment-setup/)
- [Download](https://wordpress.org/themes/modul-r/)
- [Contact form 7](https://modul-r.codekraft.it/category/contact-form-7/)
- [Quick Start](https://modul-r.codekraft.it/category/quick-start/)
- [Classic](https://modul-r.codekraft.it/category/classic/)
- [Post Formats](https://modul-r.codekraft.it/category/post-formats/)
- [Block](https://modul-r.codekraft.it/category/block/)
- [Clothing](https://modul-r.codekraft.it/product-category/clothing/)
- [Privacy Policy](https://modul-r.codekraft.it/privacy-policy/)
- [Proudly powered by WordPress & made in Bologna with ♥ by Codekraft](https://codekraft.it/)