Keith Wood date picker, consecutive dates validation

Keith Wood date picker, consecutive dates validation

Hi,

I've started using this amazing datepicker by Keith Wood for my web project and was wondering if anyone could help me out.

I am trying to make it so when the user selects a day in any week, they can only choose 3 days more consecutively. 

What I have tried was using the multiselect however this allowed me to select any 4 days. I have also tried using the custom range method, which got me closer, when I tried to add an onselect function to the custom range method where the end-date selection have a maxDate of 4 days, the datepicker stops working.

Could anyone give any suggestions?

If I am unclear please tell me.

Thanks!