Home > Web Front-end > JS Tutorial > body text

JQuery EasyUI 日期控件如何控制日期选择区间_jquery

WBOY
Release: 2016-05-16 16:49:59
Original
1799 people have browsed it
复制代码 代码如下:

发售起始日期


onFocus="WdatePicker({el:'usLineTime',dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'ueLineTime\')}'})"

value="" required="true"/>

发售结束日期


onFocus="WdatePicker({el:'ueLineTime',dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'usLineTime\')}'})"

value="" required="true"/>



注意: ueLineTime 是当前时间,主要控制的是对日期控件的控制,

MaxDate 是最大只能选当前日期,大于当前日期的变灰,不能选择。

minDate 的原理同上。
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!