bootstrap datepicker today as default

前端 未结 12 2209
粉色の甜心
粉色の甜心 2020-12-24 04:32

I am using this bootstrap-datepicker for my datepicker. I\'d like the datepicker to choose \"today\" for start day or default day. I cannot figure out how to set \"today\"

12条回答
  •  暖寄归人
    2020-12-24 05:25

    This question is about bootstrap date picker. But all of the above answers are for the jquery date picker. For Bootstrap datepicker, you just need to provide the defaut date in the value of the input element. Like this.

    ">
    

提交回复
热议问题