dflow Posted December 19, 2010 Share Posted December 19, 2010 i want to get the $todate to start after the choosen $fromdate <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="/datepick/jquery.datepick.css" media="screen" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="../style.css" media="screen" /> <script type="text/javascript" src="/datepick/jquery.datepick.js"></script> <script type="text/javascript"> $(function() { // $('#fromdate').datepick({showOn: 'both', // buttonImageOnly: true, buttonImage: '../js/datepick/calendar2.png', dateFormat:'dd.mm.yy',yearRange:'+0:+5'}); // $('#todate').datepick({showOn: 'both', // buttonImageOnly: true, buttonImage: '../js/datepick/calendar2.png', dateFormat:'dd.mm.yy',yearRange:'+0:+5'}); jQuery('#fromdate,#todate').datepick({ beforeShow: customRange, showOn: 'both', buttonImageOnly: true, buttonImage: '../datepick/calendar-blue.gif', dateFormat:'dd-mm-yyyy', yearRange:'+0:+5'}); function customRange(input) { return {minDate: (input.id == 'todate' ? $('#fromdate').datepick('getDate') : +1), maxDate: (input.id == 'fromdate' ? $('#todate').datepick('getDate') : null)}; } }); </script> Quote Link to comment https://forums.phpfreaks.com/topic/222158-set-todate-dynamically-not-working-in-calendar/ Share on other sites More sharing options...
haku Posted December 20, 2010 Share Posted December 20, 2010 i want to get the $todate to start after the choosen $fromdate Ok. Quote Link to comment https://forums.phpfreaks.com/topic/222158-set-todate-dynamically-not-working-in-calendar/#findComment-1149399 Share on other sites More sharing options...
dflow Posted December 20, 2010 Author Share Posted December 20, 2010 i want to get the $todate to start after the choosen $fromdate Ok. it works for you? Quote Link to comment https://forums.phpfreaks.com/topic/222158-set-todate-dynamically-not-working-in-calendar/#findComment-1149435 Share on other sites More sharing options...
haku Posted December 20, 2010 Share Posted December 20, 2010 No, I was just acknowledging that you had stated something in your post. Quote Link to comment https://forums.phpfreaks.com/topic/222158-set-todate-dynamically-not-working-in-calendar/#findComment-1149440 Share on other sites More sharing options...
dflow Posted December 29, 2010 Author Share Posted December 29, 2010 ok back to see if i can get some help on this thanks Quote Link to comment https://forums.phpfreaks.com/topic/222158-set-todate-dynamically-not-working-in-calendar/#findComment-1152744 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.