Hi
If I have a class, and I use it in more than one place, I can't then seem to change the attributes of that class later on, using Javascript.
If the class is only used in one place, the script changes the attribute fine.
Am I trying something fundamentally wrong or is there a way around this?
Thanks
Julian
>>>>>>
e.g.
<!--
div#x {display: inline}
-->
<div id="x">
<a href="">Opt 1</a>
<a href="">Opt 2</a>
</div>
...other code...
<div id="x">
<a href="">Opt 3</a>
<a href="">Opt 4</a>
</div>
then somewhere my javascript will change the "display" property later on.
If I have a class, and I use it in more than one place, I can't then seem to change the attributes of that class later on, using Javascript.
If the class is only used in one place, the script changes the attribute fine.
Am I trying something fundamentally wrong or is there a way around this?
Thanks
Julian
>>>>>>
e.g.
<!--
div#x {display: inline}
-->
<div id="x">
<a href="">Opt 1</a>
<a href="">Opt 2</a>
</div>
...other code...
<div id="x">
<a href="">Opt 3</a>
<a href="">Opt 4</a>
</div>
then somewhere my javascript will change the "display" property later on.