Hello,
I must do something like this (it doesn't work and I wonder if 'form' tag is necessary as well):
I would like that the js function is called after typing a date and press the button.
thanks
I must do something like this (it doesn't work and I wonder if 'form' tag is necessary as well):
Code:
<head>
<script language="JavaScript" type="text/javascript">
function createCalendar(form) {
alert("calendar" + form.date);
//here I must use 'date'
//document.bgColor='yellow'"; //this doens't work
}
</script>
</head>
<form onsubmit="createCalendar(this);">
Choose a date: <input type="text" size="15" name="date" />
<input type="button" value="Submit" id="mybutton2" />
</form>
thanks
Comment