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

Looking to nothing more complicated than simply unhiding a lot of elements when the Edit div id is clicked. I've changed the function name to getElementByClassName:

PHP Code:
<script>
document.getElementById('editmypicturesclick').onclick = function (e) {
    
document.getElementByClassName('editmypictures').style.display 'block';
};
</script> 
Still wont work. It works when i use this with DIV IDs but something about the way I'm doing it with a class is stopping it from working?
captainmerton is offline  
Reply With Quote