I am wanting to hide all elements with the id=showhide
So I set my javascript as
<script type="text/javascript">
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
</script>
</body>
and then my button as
<a href="#" onclick="toggle_visibility('showhide');">
<button>Show / Hide Details</button>
</a>
then I went and added the ID to a table, but it's only hiding the first instance of this ID, not all?