I’d like to create a dropdown in an html form that will dynamically list the next four upcoming Saturdays. The idea is that when someone is signing up they can choose which of the four upcoming Saturdays they’d like to come in to visit our space, so we can keep track and send automated email responses. The time is the same every week so that’s not an issue.
Been trying to do this through WordPress plugins but that’s proving complicated to integrate with email software… I think it must be easier and cleaner to do it in html/javascript/php.
3
Answers
Here is an example
Note the generic nearestDay to get any day of the week from today until today next week
Please check if below example can be used in your requirement. I used a button so you can see what happens and you would probably use a different event such as onload for your application.