Date picker 3 months in the future

By: Tanner Feils | Asked: 11/27/2024
ForumsCategory: General questionsDate picker 3 months in the future
Tanner Feils asked 3 hours ago

Hello

I’m adding a date picker, and I’d like it to work so that when a user picks a date, another field automatically shows a date three months later.

I tried the offset but didn't work.

1 Answers
Rob LeVineRob LeVine answered 2 hours ago
Since the page has already been create by the time you're picking a value from the first date picker, I don't see anyway you can do it other than using jQuery to set up a listener for a change event on your first date picker and then setting the value of the next date picker. It'd be just a few lines of code.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right