My97DatePicker日期控件用法实例,
选择了开始时间,则结束时间只能选择开始时间以后的,如果选择了结束时间,那么开始时间只能选择结束时间以前的。
ThinkPHP版本为3.1
nbsp;html><br>
<br>
<br>
<meta>
<br>
<title>时间选择</title>
<br>
<script></script><br>
<script></script><br>
<script><br />
//时间选择<br />
function selecttime(flag){<br />
if(flag==1){<br />
var endTime = $("#countTimeend").val();<br />
if(endTime != ""){<br />
WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',maxDate:endTime});<br />
}else{<br />
WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});<br />
}<br />
}else{<br />
var startTime = $("#countTimestart").val();<br />
if(startTime != ""){<br />
WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:startTime});<br />
}else{<br />
WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});<br />
} <br />
}<br />
}<br />
</script><br>
<br>
<br>
<br>
<br>
<br>
时间:<input> - <input> <br>
<br>
日期选择实现代码.zip
( 1.56 MB 下载:232 次 )
AD:真正免费,域名+虚机+企业邮箱=0元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.