I would like to set today's date as a maxdate for jQuery datepicker in order to prevent users from picking date greater than today's date
$(".datepicker").datepicker({maxDate: '0'});
This will set the maxDate to +0 days from the current date (i.e. today). See:
http://api.jqueryui.com/datepicker/#option-maxDate
1.4m articles
1.4m replys
5 comments
57.0k users