Home >php教程 >php手册 >My97DatePicker日期控件用法示例

My97DatePicker日期控件用法示例

WBOY
WBOYOriginal
2016-06-07 11:41:11976browse

My97DatePicker日期控件用法实例,
选择了开始时间,则结束时间只能选择开始时间以后的,如果选择了结束时间,那么开始时间只能选择结束时间以前的。
ThinkPHP版本为3.1

My97DatePicker日期控件用法示例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:&#039;yyyy-MM-dd HH:mm&#039;,maxDate:endTime});<br /> }else{<br /> WdatePicker({dateFmt:&#039;yyyy-MM-dd HH:mm&#039;});<br /> }<br /> }else{<br /> var startTime = $("#countTimestart").val();<br /> if(startTime != ""){<br /> WdatePicker({dateFmt:&#039;yyyy-MM-dd HH:mm&#039;,minDate:startTime});<br /> }else{<br /> WdatePicker({dateFmt:&#039;yyyy-MM-dd HH:mm&#039;});<br /> } <br /> }<br /> }<br /> </script><br> <br> <br> <br> <br> <br>     时间:<input> - <input>     <br> <br>

附件 日期选择实现代码.zip ( 1.56 MB 下载:232 次 )

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn