View Single Post
Old 05-02-2011, 09:07 AM   #12 (permalink)
captainmerton
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

I've been using the above javascript to hife css divs and then unhide on click etc. Quick question. Using the following javascript (as an example):

PHP Code:
<script>
document.getElementById('unhide').onclick = function (e) {
    
document.getElementById("hiddendiv").style.display 'block';
};
</script> 
...I've been trying to onclick reveal all the div ids hiddendiv. This works ok however it finds the first occurance of this then unhides it and doesnt do any other later occurances. Is there a way round this before i use the javascript to unhide all potential occurances i.e. hiddendiv1, hiddendiv2 etc?
captainmerton is offline  
Reply With Quote