JQuery UI datepicker ( start weeks from Monday)

前端 未结 1 1354
情书的邮戳
情书的邮戳 2020-12-29 00:57

I am using jQuery UI datepicker, I know I can customize this datepicker in this way:

$(\"#reserve_date\").datepicker({
            beforeShowDay: no_disabled         


        
相关标签:
1条回答
  • 2020-12-29 01:47
    $( ".selector" ).datepicker({ firstDay: 1 });
    

    jQuery UI Reference; see the link for a slightly more detailed explanation.

    For inline reference:

    Sunday     0
    Monday     1
    Tuesday    2
    Wednesday  3
    Thursday   4
    Friday     5
    Saturday   6
    
    0 讨论(0)
提交回复
热议问题