如何从jQuery Mobile的日期框中删除当前日期? [英] How to remove the current date from date box in jquery mobile?

查看:73
本文介绍了如何从jQuery Mobile的日期框中删除当前日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How to remove the current date from the date box .Actually when i open the date box it high light the current date.But user select date example "14". If user again open date box it hightlight "14"and current date. Here is my fiddle 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}' />

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

first click (+) button on header .It show pop up .open date box .it show today date select any date .then again open date box.it show selected date and today's date.?

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

second issue how to change colour of monday , tuesday ...?

推荐答案

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

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

To remove the highlighting of current date and only keep the selected date being highlighted you can do this:

但同时保留两者,则需要修改日期框的api代码本身...

But keeping both you would need to modify the datebox's api code itself...

这篇关于如何从jQuery Mobile的日期框中删除当前日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆