I have gotten the earliest date and latest date via
$query = "SELECT MIN(date_added) FROM books
UNION SELECT MIN(date_created) FROM news
UNION SELECT MIN(date_created) FROM registered_member
UNION SELECT MIN(date_of_rental) FROM rent
UNION SELECT MIN(datetime) FROM shopping_cart";
this returns me the earliest and latest.
I was thinking how do i use the data return to put into the range of jquery datepicker?
This is my current code without any options added.
<script type="text/javascript">
$(document).ready(function() {
$( "#datepicker" ).datepicker(); });
</script>
If I understand you properly you might use
minDateandmaxDateoptions like:Also you may use it in constructor: