javascript - How to set a Jquery Datepicker daterange -


i have 2 input text boxes bound jquery datepicker widget. when user select given date date1 (effective date), want set min date of date2 (expiry date) date1 + 1 .. how do that,

see link : jquery datepicker- 2 inputs/textboxes , restricting range

and use onchangemonthyear function or onselect function:

$('#txtstartdate, #txtenddate').datepicker({         showon: "both",         beforeshow: customrange,         dateformat: "dd m yy",         firstday: 1,          changefirstday: false,         onchangemonthyear: function(year, month, inst) { ... },         onselect: function(datetext, inst) { ... }     }); 

and use same technique ben koehler or russ cam used.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -