January 11, 2007, 03:25 PM
HåkanUsing the calendar
Does anybody have a working way of retrieving the calendar values? I get the result "undefined" when trying to display this.calendar1.value.
Tia
Håkan
January 12, 2007, 06:08 AM
Tony AHåkan,
What type of HTML control are you using? Post the tag set for your calendar control.
T
January 12, 2007, 07:49 AM
HåkanTony, sorry. I should have mentioned it's the HTML calendar control from Dev Studio HTML Layout Painter.
January 12, 2007, 08:54 AM
<Tim Howard_ABCBS>In javascript you can either use the following:
calendar1.value
or the more correct DOM way:
document.getElementById("calendar1").value
I've used both ways in my code and they both work great.
January 12, 2007, 09:00 AM
HåkanTim, thanks. The second option works fine.