Home > ASP.Net, Jquery > Disable future Date in JQuery Calender

Disable future Date in JQuery Calender

Hi all,

try this example to Disable future Date in JQuery Calender

1) Create a new website and add new Page

2) Inside your page add the following code

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/base/jquery-ui.css"
 type="text/css" media="all" />
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
 <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"
 <script type="text/javascript">
 $(function () {
 var date = new Date();
 var currentMonth = date.getMonth();
 var currentDate = date.getDate();
 var currentYear = date.getFullYear();

$('#<%= txtDate.ClientID %>').datepicker({
 maxDate: new Date(currentYear, currentMonth, currentDate)
 <form id="form1" runat="server">
 <asp:TextBox ID="txtDate" runat="server"></asp:TextBox>

Hope this helps

Good Luck

Categories: ASP.Net, Jquery
  1. kartik patel
    September 8, 2016 at 6:37 am

    i am changing the page at that time sum of the old page selected data not show why?

    Why at the new page new sum of the data perform ?

    i want to the sum of the selected data from multiple page

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: