I try to use the Java Script showCalender() function on the front end. This works fine on the back end
Code: Select all
<?php
JHTML::_('behavior.calendar');
?>
<input type="text" class="inputDate" id="dateFieldXYZ" /><input type="reset" value="..." onclick="return showCalendar('dateFieldXYZ','d-mm-yy')" />
But: If I use the same lines on the front end I just get an error message that 'showCalender' is not defined.
Anyone an idea how to use that functionality on the front end?
Thanks,
Uwe