I need to adjust a date selected in jQuery’s datepicker. For example, whatever user chooses, change to closest weekend.
Is there a way to do this? Some validation / filtering support. Or maybe it can be done with a help from some other validation library that will track text in the text box, not the datepicker value?
What you can do is subscribe to the
selectevent and change the date:Note: not tested.