0

如何从日期框中删除当前日期。实际上,当我打开日期框时,它会突出显示当前日期。但用户选择日期示例“14”。如果用户再次打开日期框,它会突出显示“14”和当前日期。这是我的小提琴 http://jsfiddle.net/ravi1989/uhdYv/1/

 <input name="mydate" id="mydate" type="date" data-role="datebox" class="documentDate_h"  data-options='{"mode": "calbox","useNewStyle":true,"zindex":1200}' />

首先单击标题上的(+)按钮。它显示弹出。打开日期框。它显示今天的日期选择任何日期。然后再次打开日期框。它显示选定的日期和今天的日期。?

第二期如何改变周一、周二的颜色...?

4

1 回答 1

0
    For changing color of the current date from its default theme "a" you can use this:

     <input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "calbox", "useNewStyle":true, "themeDateToday": "e", "zindex":2000}'/>

    Hence current date will be in yellow, instead of blue and choosen date can be default blue.

    refer these sites for theming of the call box:

    http://dev.jtsage.com/jQM-DateBox2/demos/fullopt.html
    http://dev.jtsage.com/jQM-DateBox2/demos/api/themes.html

There is no such setting for month text, so for "Tu We" etc override the class as per below:

.ui-datebox-griddate-label {
height: 15px!important;
line-height: 15px!important;
color: green;
}

要删除当前日期的突出显示并仅突出显示所选日期,您可以执行以下操作:

但是保持两者你需要修改日期框的api代码本身......

于 2013-07-17T17:50:52.093 回答