View Single Post
01-08-2009, 05:58 AM
#1
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Expertise:
Software:
 
Posts: 419
iTrader: 0 / 0%
 

Sketch is on a distinguished road

  Old  JQuery - Date Picker

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.