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

Executing PowerShell scripts from C#

HOW TO Use the NumericUpDown Control

Exposing Agile Software Development Myths