I want to specify range between two datepicker. from
and to
which look like following
In above image I selected from year
as 2011 and now I do not want to select to year
is less than from year. How can achieve this.
Code
$('#from').datepicker({
format: "yyyy",
autoclose: true,
minViewMode: "years"
});
$('#to').datepicker({
format: "yyyy",
autoclose: true,
minViewMode: "years"
});