Setting up Joomla calendars

I am trying to create a reservation system. How to show the selected date in two select boxes instead of the input, which is the default value in Joomla, as in the image below?

alt text

I tried to find the calendar-setup.js file but could not find any function for this. I want to associate the click event of the calendar with the selection fields.

Any suggestions?

+4
source share
1 answer

It can get a little hairy. The calendar most likely sends the line back in the format specified by the calendar settings. If so, matching the format string with the values ​​for the items in the drop-down list is likely to do the trick. Sort of:

 function clickCallback(clickValue){ document.getElementByID().selectedIndex = clickValue; } 

This trick figures out how you are going to get the index and return values ​​in a string.

+1
source

All Articles