如何从jquery mobile的日期框中删除当前日期?

问题描述:

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

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

第一次点击(+)上的标题按钮。它显示弹出。开日期框。它显示今天的日期选择任何日期。然后再次打开日期box.it显示选定的日期和今天的日期。?

第二个问题如何更改星期一,星期二......的颜色?

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; 
} 

要删除当前日期的高亮和仅保持选定的日期被突出显示,你可以这样做:

但保留两个,你会需要修改datebox的API代码本身..

+0

其实我的问题是不同的.. !!其实今天的日期是选择当用户点击另一个按钮 –

+0

通常今天的日期突出显示你不想这个功能?请清楚的要求... – Sheetal

+0

但如果你看到在我的小提琴17选择当用户选择另一个日期。如何删除.. ..? –