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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -