I sure do love jQuery. It has some great date pickers available for it. But I’m looking for something a bit more custom and don’t know how to program it. If you’ve got a suggestion for me, I’d greatly appreciate it.
It would have two requirements:
- The date selected would always be three days out from the current date.
- Weekends (U.S./Saturday and Sunday) wouldn’t be available. Weekdays only.
I guess that’s it. I stand on the shoulders of giants. Thanks for any help you can give in advance.
Actually you can do this with jQuery UI’s Datepicker.
You’d need something like this:
This will make those weekdays selectable that are 3 days from today (into past and future as well). If you need something more complex, it is easy to write your own
beforeShowDayfunction, check the documentation. There are also lots of jQuery UI Datepicker questions here on StackOverflow, so you can easily get help.No need to reinvent the wheel, if we have great tools available.