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: