End Date should not be less than Start Date using jQuery Date Picker


    set maxDate: '0d' if you want to set your range with current date.

$(document).ready(function(){
    $("#txtFromDate").datepicker({
        maxDate: '0d',
        numberOfMonths: 2,
        onSelect: function(selected) {
          $("#txtToDate").datepicker("option","minDate", selected)
        }
    });
    $("#txtToDate").datepicker({ 
        maxDate: '0d',
numberOfMonths: 2, onSelect: function(selected) { $("#txtFromDate").datepicker("option","maxDate", selected) } }); });

Comments

Popular posts from this blog

How to create RSS Feed in Asp.Net

Auto generate change scripts in SQL Server Management Studio SSMS for tables

HOW TO Use the NumericUpDown Control