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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -