Calendar function won't trigger

ThuMrLol

New Member
I am trying to trigger a calendar popup on an image with javascript, but for some reason, it isn't working correctly. Any advice?Here is my code:\[code\]<input size="12" id="f_date1" class="fields"/>&nbsp;<a href="http://stackoverflow.com/questions/13754049/#" class="f_btn1" title="Select your date and time."><img src="http://stackoverflow.com/questions/13754049/Icons/calendar.png" alt="Calendar" width="16" height="16" border="0" /></a></td> <script type="text/javascript">//<![CDATA[ Calendar.setup({ inputField : "f_date1", trigger : "f_btn1", onSelect : function() { this.hide() }, showTime : 12, dateFormat : "%Y-%m-%d %I:%M %p" }); //]]></script>\[/code\]The css and the js are included in the header. Chris
 
Back
Top