hellouniverse
Novice

How to show only next weekend dates in Ninxtex Form?

Jump to solution

Hello,

I will like to have a dropdown where I show only the next weekend  (Saturday and Sunday) dates with two times (morning and afternoon)? 

How is that possible? 

0 Kudos
Reply
3 Replies
emha
Collaborator
hellouniverse
Novice

Re: How to show only next weekend dates in Ninxtex Form?

Jump to solution

Thanks. It worked as below

NWF$('.yourInputClass').datepicker('option', {
beforeShowDay: function(currDate) {
if (currDate.getDay() == 1 || currDate.getDay() == 2 || currDate.getDay() == 3 || currDate.getDay() == 4 || currDate.getDay() == 5)
return [false, ""];
return [true, ""];
},
minDate: 0,
maxDate: +1 * 7,
})
Reply
emha
Collaborator

Re: How to show only next weekend dates in Ninxtex Form?

Jump to solution

perfect!

please mark correct answer.

0 Kudos
Reply