Hi All, I'm developing a new site.
JS help...
5
Hi All,
I'm developing a new site.
I want to show somthing on click, eg: READ MORE, will drop down the text.
heres my code so far:
This code works great.. does the job nice and easy, however I want to use this code multiple times on the page, and its not allowing it. I can only use it 1 time per page.. Can anyone tell me a way to make it work more than once?
I have put the js into the header, an it still don't work..
Cheers.
I'm developing a new site.
I want to show somthing on click, eg: READ MORE, will drop down the text.
heres my code so far:
Code:
<div id="HiddenDiv" style="display:none;">Content</div>
<a href="javascript:ShowDiv()">Show Div</a>
<script language="javascript">
function ShowDiv()
{
document.getElementById("HiddenDiv").style.display = '';
}
</script> I have put the js into the header, an it still don't work..
Cheers.
- Andrew H
- [ 1 ] Thanks
- danb12
- [1] reply
- Damien Roche
- Michael71
Next Topics on Trending Feed
-
5