jquery - How to disable previous dates while still displaying the previous dates? -


i used "mindate : datetoday" , "mindate : 0" previous date not displaying.

for example if enter today's date , when checked tomorrow, database still has yesterday's date date displayed tomorrow's.

how can resolve problem?

code used

$('#startdate,#enddate,#dateentered').datepicker({         mindate : datetoday,         maxdate : "+10y",         buttonimage: "static/images/calender.gif",         buttonimageonly: true,         constraininput: true     });  

working demo --> http://jsfiddle.net/f6qjf/1/

$('#date').datepicker({     maxdate : "+10y",     buttonimage: "static/images/calender.gif",     buttonimageonly: true,     constraininput: true,     beforeshowday: check });  function check(date) {     if (date > new date()) return [true];     else return [false]; } 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -