ASP. NET uses my97 DatePicker to achieve the scoping of two dates before and after

Source: Internet
Author: User

Description: After date selection, the previous date is less than the following date, followed by a date greater than or equal to the previous date. Just a little bit to see it:)

~

Weekend dates are not selectable here. The code is as follows:

1"http://www.w3.org/1999/xhtml">2"Server">3<title></title>4<script type="Text/javascript"Src="My97datepicker/wdatepicker.js"></script>5<link type="Text/css"Rel="Stylesheet"href="My97datepicker/skin/wdatepicker.css"/>6<%--<script type="Text/javascript">7 function getborderdate (ID) {8             returndocument.getElementById (ID). value;9         }Ten</script>--%> One A<body> -<form id="Form1"runat="Server"> -<div> the<%--himself to write JS is also possible, since the Mydatepicker control provided there is no need, commented out is their own written JS judgment, but also to achieve its function <br/> -of which: disableddays:[0,6] is the weekend date is not optional <br/> -<input id="predate" class="wdate"Type="text"onclick="var max_date = getborderdate (' nextdate '); Wdatepicker ({maxdate:max_date,disableddays:[0,6]})"/> - ~ +<input id="nextdate" class="wdate"Type="text"onclick="var min_date = getborderdate (' predate '); Wdatepicker ({mindate:min_date,disableddays:[0,6]})"/>--%> -<input id="predate" class="wdate"Type="text"onclick="Wdatepicker ({maxdate: ' #F {$dp. $D (\ ' nextdate\ ')} ', disableddays:[0,6]})"/> + ~ A<input id="nextdate" class="wdate"Type="text"onclick="Wdatepicker ({mindate: ' #F {$dp. $D (\ ' predate\ ')} ', disableddays:[0,6]})"/> at</div> -</form> -</body> -

ASP. NET uses my97 DatePicker to achieve the scoping of two dates before and after

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.