Friday, February 13, 2015

disable weeks

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="disableweeks.aspx.cs" Inherits="disableweeks" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="jq/jquery-1.9.1.js"></script>
    <script src="jq/jquery-ui-1.10.3.custom.js"></script>
    <script src="jq/jquery-ui-1.10.3.custom.min.js"></script>
    <script>
        $(function () {
            /*function that makes appear datepicker + you add option to disable Weekends*/
            $("#date").datepicker({ beforeShowDay: $.datepicker.noWeekends })
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div >
    <input type="text" id="date" />
    </div>
    </form>
</body>


</html>

No comments:

Post a Comment