$(document).ready(function(){ $("#txtFromDate").datepicker({ numberOfMonths: 2, onSelect: function(selected) { $("#txtToDate").datepicker("option","minDate", selected) } }); $("#txtToDate").datepicker({ numberOfMonths: 2, onSelect: function(selected) { $("#txtFromDate").datepicker("option","maxDate", selected) } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)