I want to have an array of divs, which I can make visible by clicking a button, but it isn't working (and I don't know much about javascript).
HTML:
<SCRIPT LANGUAGE="JavaScript">
<!--
function bewerknieuwsitem(id) {
document.getElementById('dividers[how to get this id?]').style.visibility = "visible";
document.getElementById('dividers[how to get this id?]').style.height = "400px";
}
// -->
</SCRIPT>
<div style="visibility:hidden; height:0px;" id="dividers[php provided id]">
Yadda yadda</div>
<a href="javascript:bewerknieuwsitem(php provided id);">Button</a>