Jquery datepicker - only day and month

后端 未结 6 1212
灰色年华
灰色年华 2020-11-30 11:33

I want the user to specify their birthday or anniversary date (without year) in a form. For this, I want to use jquery datepicker but it should not show any year option at a

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 12:10

    $("#datepicker").datepicker( {
    format: "dd-MM",
    viewMode: "months", 
    maxViewMode: "months"
    });
    

    this will surely hide year from datepicker view, will show only month and days panel

提交回复
热议问题