here is my code:
<form action="eventssearch.php" method="post" onsubmit="return checkDate();">
<p>
<label for="date1">Date in the format DD/MM/YYYY:</label><br />
<input type="text" id="date" name="date11" />
<input type="submit" value="Check " />
<br />(example 26/04/1975) <span class="error"> </span>
</p>
</form>
I wrote the following code which didnt work:
var dateField=document.getElementById('error');
dateField.value = "hi Mom"
Is there some kind of parent-child relationship here which I am not seeing ? If so, how can I spot it ?