Hello Japerezclick,
Although there is no setting in the datepicker dashboard that allows you to accomplish that, if you know how to use Javascripts/custom script, you can control how it behaves when people click. We wish we could offer you a solution for this. But in some situations, such as custom scripting, it is already out of the scope of our support.
One way to do this is to use JavaScript to add the class to the selected td element when it is clicked. Here’s an example of how you can achieve this:
First, add a JavaScript code block to your webpage where you have the Contact Form 7 with the date picker plugin.
In the JavaScript code, select all td elements in the date picker table using a query selector.
Add a click event listener to each td element.
When an td element is clicked, remove the “selected” class from any previously selected td element and add the “selected” class to the clicked td element.
Here’s an example of what the JavaScript code could look like:
<script>
// Select all td elements in the date picker table
var tds = document.querySelectorAll('.datepicker td');
// Add a click event listener to each td element
tds.forEach(function(td) {
td.addEventListener('click', function() {
// Remove the "selected" class from any previously selected td element
var selectedTd = document.querySelector('.datepicker td.selected');
if (selectedTd) {
selectedTd.classList.remove('selected');
}
// Add the "selected" class to the clicked td element
this.classList.add('selected');
});
});
</script>
In the above code, replace “.datepicker td” with the appropriate selector for selecting the td elements in the date picker plugin on your webpage. And replace “.selected” with the desired class name for the selected td element.
With this code in place, only the selected td date will have the “selected” class, making it easier for you to style it separately.
While we do not offer custom integration services, we suggest reaching out to a skilled web developer who can help you with this. There are several platforms available, including Upwork, Freelancer, Fiverr, and Codeable, where you can post your requirements and find a suitable professional for the job.
?As you may know, we are in the process of revamping our system and plan to release a new version this year. However, we cannot guarantee that this specific feature will be included in the new version as our developers are currently unable to disclose the list of new features yet.
Let me know if you have questions.