Hi,
I'm trying to get some code working with JS. You can see it here:
The example code is (please note, the ID's change each time the page is loaded, as this will be used more as many as 25 listings per page, so I'm using random ID's)
When you click the link, it shows the alert box with "HERE" in it, so I know the function is being called - yet it never seems to actually show the div :/
Any ideas? Been going around in circles for the last hour trying to get this working
TIA
Andy
I'm trying to get some code working with JS. You can see it here:
The example code is (please note, the ID's change each time the page is loaded, as this will be used more as many as 25 listings per page, so I'm using random ID's)
Code:
<script type="text/javascript">
function hXEGZQpOUu() {
alert("HERE");
$('rlRXubGlbF').show();
$('hXEGZQpOUu').hide();
}
</script>
fdfsdf bla
sdf2 tablespoons tomato sauce
dfff bl
<div id="hXEGZQpOUu"><a href="javascript: hXEGZQpOUu();">...more </a></div>
<div id="rlRXubGlbF" style="display: none;">a color
adding some more content
adding some more content
adding some more content
more stuff
adding some more content
asdfasdas
asdadasd
asdasdasd</div>
When you click the link, it shows the alert box with "HERE" in it, so I know the function is being called - yet it never seems to actually show the div :/
Any ideas? Been going around in circles for the last hour trying to get this working
TIA
Andy