公告
财富商城
积分规则
提问
发文
2019-08-01 09:35发布
我想做一个坏孩纸
I think I'm missing something pretty straight forward here..
How do you set the default date on the jqueryui to tomorrow ?
Initialize a datepicker with the defaultDate option specified.
$( ".selector" ).datepicker({ defaultDate: +1 });
Get or set the defaultDate option, after init.
defaultDate
init
//getter var defaultDate = $( ".selector" ).datepicker( "option", "defaultDate" ); //setter $( ".selector" ).datepicker( "option", "defaultDate", +1 );
see: http://jqueryui.com/demos/datepicker/#option-defaultDate
Or if your don't want back dates then you can use as this while initialzing the datepicker
datepicker
minDate: +1
最多设置5个标签!
Initialize a datepicker with the defaultDate option specified.
Get or set the
defaultDate
option, afterinit
.see: http://jqueryui.com/demos/datepicker/#option-defaultDate
Or if your don't want back dates then you can use as this while initialzing the
datepicker