tiagompvieira
Programmer
hi,
i'm trying to create a scrit that gets one html element but, i don't know the id.
i have something like:
...
<div id="firstDiv">
<script src="JsSource.js" type="text/javascript"></script>
</div>
<div id="firstDiv">
<script src="JsSource.js" type="text/javascript"></script>
</div>
...
--
the javascript file is suppost to change the current div
if i do:
"this.parent" I get a document object.
how can I in the javascript file get the div reference of the div it belongs without knowing the div id???