jquery ui datepicker if no active mondays left at the end of the month

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-04-22T09:28:27Z Indexed on 2010/04/22 9:33 UTC
Read the original article Hit count: 200

I made that only mondays are active in each month like this

function onlyMondays(date){
        var day = date.getDay();                    
        return [(day == 1), ''];                                                        
    }

But at last week of the month there wont be any active mondays left so i want to show next month in that case based on the code above.

Any idea would be appreaciated. Thanks.

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about jQuery