Date picker

Permalink
Hello!

I'm handling with a book form with DatePicker and also as a mandatory field.

Changing the date field to allow only Mondays and Thursdays, concrete core is always asking me to fill in this field! But it was already filled!


// Mondays and Thursdays
$("#Question13_pub").datepicker({
    beforeShowDay: function(date) {
        var day = date.getDay();
        return [(day ==1 || day == 4)];
    }
});




Any help on how to solve this?

hrcv