05-03-2011, 07:20 PM
|
#16 (permalink)
|
|
The Acquainted
Join Date: May 2009
Posts: 178
Thanks: 9
|
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?
|
|
|
|