I have a problem, it's not browser specific, and I don't get a
solution. I have an (X)HTML document, I show you a part of it:
....
<!--<div class="pad">-->
<div id="eventImages "><img src="" id="eventImage0 "
class="eventIma ge"><img src="" id="eventImage1 "
class="eventIma ge"></div>
<div id="eventRightM enu">
<a href="javascrip t:" class="eventIco n"
style="float:le ft;"><</a>
<a href="javascrip t:" class="eventIco n"
style="float:le ft;">></a>
<a href="javascrip t:" class="eventIco n"
style="float:le ft;">L+</a>
</div>
<div id="eventMaps"> </div>
<!--</div>--></div>
....
So after the whole document has been loaded (including JS etc), I want
to get an element by Id, for all elements it works properly, but for
'eventImage0', 'eventImage1' and any other children of 'eventImages' it
does not work. My Firebug just says undefined when I put
$('eventImage0' ) or null by using
document.getEle mentById('event Image0'));
Can somebody help me? This behaviour is not what I am used to. IE and
FF do the same, so whats wrong?
Greetz,
Andi
solution. I have an (X)HTML document, I show you a part of it:
....
<!--<div class="pad">-->
<div id="eventImages "><img src="" id="eventImage0 "
class="eventIma ge"><img src="" id="eventImage1 "
class="eventIma ge"></div>
<div id="eventRightM enu">
<a href="javascrip t:" class="eventIco n"
style="float:le ft;"><</a>
<a href="javascrip t:" class="eventIco n"
style="float:le ft;">></a>
<a href="javascrip t:" class="eventIco n"
style="float:le ft;">L+</a>
</div>
<div id="eventMaps"> </div>
<!--</div>--></div>
....
So after the whole document has been loaded (including JS etc), I want
to get an element by Id, for all elements it works properly, but for
'eventImage0', 'eventImage1' and any other children of 'eventImages' it
does not work. My Firebug just says undefined when I put
$('eventImage0' ) or null by using
document.getEle mentById('event Image0'));
Can somebody help me? This behaviour is not what I am used to. IE and
FF do the same, so whats wrong?
Greetz,
Andi
Comment