How to disable specific dates in jquery calendar dynamically and make another calendars maxdate depending on that calendar? -


i have 2 calendars on html page defined as:

<p>calendar 1:     <input type="text" id="datepicker1" /> </p> <p>calendar 2:     <input type="text" id="datepicker2" /> </p> 

i want disable sundays, mondays , tuesdays on calendar 1 , want set mindate of calendar tomorrow.

i want make calendar 2's maxdate should date selected in calendar 1.

  function beforeshowday(date) {      var day = date.getday();      return [(day != 7 && day != 1 && day != 2)]; } 

this code disable sunday,monday , tuesday of calendar.

$("#datepicker1").datepicker().change(function () {       $("#datepicker2").datepicker('option', 'maxdate', $(this).datepicker('getdate'));   }); 

this code set 2nd calendars maxdate on 1st calendars selection.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -