javascript - How to make all future dates non-clickable -
javascript - How to make all future dates non-clickable -
i want disable future dates in calendar after today. today's date highlighted in yellowish (feb 23rd 2012
)in diagram below. other future dates should non clickable. how can ?
for instance 24th,25th.... etc should not clickable
note: $('.datepicker').blackoutdates.add(new calendardaterange(datetime.now.adddays(1), datetime.maxvalue));
doesn't work
if using jquery ui datepicker calandar, utilize maxdate
method : http://api.jqueryui.com/datepicker/#option-maxdate
$( ".selector" ).datepicker({ maxdate: new date() });
new date()
corresponds current date
demo : http://jsfiddle.net/uqty2/21/
javascript jquery jquery-ui
Comments
Post a Comment