Hi,
I am using dhtmlxCalendar and I want to be able to click on a button and display the selected date in a label.
I have renamed the files (the Calendar does come up)
With the code below, when you click a button it pop’s up with the calendar, and you can select the date, but it displays the selected date on the button.
I wan’t the button to display the calendar, but the results to display in the label.
The code I am using is as follows:
[code]
<body onload="doOnLoad();">
<script>var myCalendar;
function doOnLoad() {
myCalendar = new dhtmlXCalendarObject(["calendar", "calendar2", "calendar3"]);
}</script>
<label>date 1 will display here</label> <br>
<label>date 2 will display here</label> <br>
<label>date 3 will display here</label> <br>
<input type="submit" id="calendar" value="Change Date 1" /> <br>
<input type="submit" id="calendar2" value="Change Date 2" /> <br>
<input type="submit" id="calendar3" value="Change Date 3" /> <br>[/code]
Anyone got any ideas?