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> 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 Quote i want to get the $todate to start after the choosen $fromdate Ok. 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 Quote Quote i want to get the $todate to start after the choosen $fromdate Ok. it works for you? 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. 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 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
Archived
This topic is now archived and is closed to further replies.