![]() Var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin. 3) When you select a start date, set it as minDate for end Date. var today new Date () var tomorrow new Date (today.getTime () + 24 60 60 1000) 2) Set tomorrow's date as minDate in start Date. Var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 1) 1) First get today's and tomorrow's dates. ('datepicker').datepicker ('setDate', currentDate) Check the following jsfiddle. Var dateMin = $('#datepicker').datepicker("getDate") var currentDate new Date () Then you need to place it in the arguments of datepicker like given below. ![]() Then when I clicked in the "Check-Out" box, it worked and brought up the calendar again with the day after the checkout date default selected in the bright blue. ![]() ![]() All I did was put the "datepicker2" function again underneath the solution you provided. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |