friendlyposter
Programmer
Thanks for your consideration of this question.
I am working with IE ONLY - so I don't need a NS solution.
I want to refer to the value of a document element (span) whose ID is not unique ... BUT ... which is nonetheless unique within a certain DIV only.
The page is something like this:
<script>
function showstarter() {
alert(startTime.innerHTML) ;
var x = startTime.hh.innerText;
alert(x) ;
}
</script>
<body onload="showstarter()">
<DIV id=startTime>
<Span id=hh>01:</Span>
</DIV>
<DIV id=endTime>
<Span id=hh>01:</Span>
</DIV>
USING IE, want to refer to the hh element within a given DIV.
It would be nice if I could say...
var x = startTime.hh.innerText
Of course if it worked I would not be asking.