From inline DHTMLX calendar to hidden input.

There are inline “built-in div-calendar-dhtmlx.” I connect it like this

[code]var myCalendar;

	function doOnLoad() {
		
		myCalendar = new dhtmlXCalendarObject("calendarHere");
		myCalendar.hideTime();
		myCalendar.show();
		
	}[/code]

[code]

Примерный календарь, 10, 19-22

[/code] It works ! Actually the question is how to do it so that when press , it passes the value (date) to the hidden input [code] <input type="hidden" name="hiddendate" id="hiddendate" value="" [/code]

Please, try to use the following solution:

myCalendar.attachEvent("onChange", function(date, state){ document.getElementById("hiddendate").value=date });