If you want to set the current date of the jquery datepicker , use the setDate
option.
This can be done on the fly with $('#dateselector').datepicker("setDate", new Date() )
( soucre )
If you want to set the date to tomorrow, use $("#dateselector").datepicker("setDate", "1");
( source )
Or you can use setDate when you're first setting up your datepicker with:
$('#dateselector').datepicker({'setDate': new Date()});
These sources were found with a very easy Google search. Typically, when posting a question, you want to show your code, what you've tried, and what errors you're getting. Good Luck!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.