How to remove the current date from date box in jquery mobile?

前端 未结 1 562
有刺的猬
有刺的猬 2021-01-27 09:24

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 b

1条回答
  •  失恋的感觉
    2021-01-27 09:48

        For changing color of the current date from its default theme "a" you can use this:
    
         
    
        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:

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

    0 讨论(0)
提交回复
热议问题