开发者

Jquery DatePicker Some Display Changes

开发者 https://www.devze.com 2023-04-07 17:29 出处:网络
I am using the jquery datepicker. I have to change some display showing the calendar. I don\'t have enough reputation to post an image so i开发者_开发技巧 have posted in jquery forum. Kindly look ove

I am using the jquery datepicker. I have to change some display showing the calendar.

I don't have enough reputation to post an image so i开发者_开发技巧 have posted in jquery forum. Kindly look over it and guide me and how to implement this.


IF you simply want to show the current month plus any days in incomplete weeks - days from other months, you can do this as such:

$(function() {
    $( "#datepicker" ).datepicker({
      showOtherMonths: true,
      selectOtherMonths: true
    });
});

If you wish to show the next months incomplete week, PLUS one more week, you will need to do this differently.

The selectOtherMonths: true portion above sets if the OTHER months dates are selectable (true) or not (false), the current months days are more bold visually but ALL are selectable if this is true.

EDIT: The question remains then, if you want the EXTRA week of dates listed from the NEXT month? IF that last is true, I think perhaps we are looking at the need for custom code or another plug-in to use.


Use following option to show other months

$( "#datepicker" ).datepicker({ showOtherMonths: true, selectOtherMonths: true });

To change the styling override the following css class

.ui-priority-secondary

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号