jQuery UI - Datepicker - Hide year

后端 未结 5 1050
庸人自扰
庸人自扰 2021-01-02 01:14

I\'m using jQuery UI 1.8 and I would like to hide the year from the user in both the popup and the textbox. Essentially instead of picking the day, month and year I want the

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 01:27

    The attribute

    changeYear:false;
    
    select.ui-datepicker-year { display:none }
    

    sometimes change dropdown to span. So add this css code.

    span.ui-datepicker-year { display:none }
    

提交回复
热议问题