jQuery UI - Datepicker - Hide year

后端 未结 5 1051
庸人自扰
庸人自扰 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:37

    VIKSME Hide year http://jsfiddle.net/tocv/e5cvA/

    CSS

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

    HTML

        

    JavaScript

    $(function() {
        $( "#datepicker" ).datepicker({
          changeMonth: true,
          changeYear: false
        });
      });
    

提交回复
热议问题