php_begins Posted March 5, 2012 Share Posted March 5, 2012 <script type="text/javascript"> $(function() { $('#dp_date').datepicker({ dateFormat: 'm/d/yy', minDate: 1, beforeShowDay: $.datepicker.noWeekends }); }); </script> I have the following script which gets date in the future and does not show weekends. I need to modify the above code as follows: I have one more date stored in the php variable $ef_date which is greater than or equal to current date. I want my datepicker to pick only dates that are greater than the $ef_date variable. It can be equal to $ef_date only if $ef_date is greater than today's date. Else it always has to be greater than $ef_date. Link to comment https://forums.phpfreaks.com/topic/258350-jquery-datepicker-compare-with-php-variable/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.