I've jumped on board someone elses project and am having some issues.
They have used Smarty to build the site *Grrrr* and they have also use the Date Picker add-on for Jquery, I don't have an issue with this but I can't get the simplest bit of code to work and I don't understand why.
I have an input box
Code:
<input class="date pic text" id="date" name="date" style="width:auto" value="{$date|date_format:'%d/%m/%Y'}" />
And at the bottom of the template file I have a literal tag and the following javascript
Code:
$('#date').datepicker({
startDate:'01/01/2009',
endDate:'01/01/2011'
});
The code will create the date picker, but the start date and end date aren't working... It keeps the default of 1999 / 2019. Does anyone know why this isn't working?
I've also updated jquery & date picker to the latest versions.